Commands¶
commands.register('beds', ['bedalert'], function (args) {
chat.print('args: ' + args.join(' '));
});
commands.unregister('beds');
A script command runs as /fkdr beds …, not as a top-level /beds, so a script can never take over a Hypixel command by accident.
args is a real JavaScript array of the words after the command name.
Names¶
- Built-in
/fkdrsubcommands always win; registering one of those names is refused with a message, as is a name another script already owns. - Names are matched case-insensitively and stored lower-cased, so
commands.register('Beds', …)and/fkdr bedsare the same command. - The names you cannot take are everything
/fkdr helplists, plusscripts,key,licenceandlicense. Names that merely start with one of those, such askeysorkeybinds, are yours to take.
No tab completion
fkdr commands have no tab completion, so there is no completer argument.