Skip to content

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 /fkdr subcommands 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 beds are the same command.
  • The names you cannot take are everything /fkdr help lists, plus scripts, key, licence and license. Names that merely start with one of those, such as keys or keybinds, are yours to take.

No tab completion

fkdr commands have no tab completion, so there is no completer argument.