Fix HelpCommand not working without static CommandsExecutor
This commit is contained in:
@@ -14,9 +14,9 @@ var staff_heading = "!";
|
||||
var levels = ["Common", "Donator", "JrGM", "GM", "SuperGM", "Developer", "Admin"];
|
||||
var commands;
|
||||
|
||||
// Expectation: "ce" bound to an instance of java.client.command.CommandsExecutor
|
||||
function writeHeavenMSCommands() {
|
||||
const CommandsExecutor = Java.type('client.command.CommandsExecutor');
|
||||
commands = CommandsExecutor.getInstance().getGmCommands(); // TODO: fix. CommandsExecutor is now injected rather than being a singleton, so this does not work anymore.
|
||||
commands = ce.getGmCommands();
|
||||
}
|
||||
|
||||
function start() {
|
||||
|
||||
Reference in New Issue
Block a user