removeCommand
Remove any command with a script.
Overview:
Functions:
API Reference
removeCommand()
removeCommand()Removes the specified command if it exists
removeCommand("commandName");Parameters:
commandName(String) The name of the command (without/)
This function can remove any command, not just custom commands made by scripts. If you accidently remove a command from another plugin, you will have to restart the server to get the original plugin command back.
Example:
removeCommand("help");
addCommand("help", {
onCommand: function(sender, args) {
sender.sendMessage("Hello from help!");
},
onTabComplete: function(sender, args) {
return toJavaList(["Example", "Custom"]);
}
});Last updated
Was this helpful?