Package net.md_5.bungee.api.plugin
Class Command
java.lang.Object
net.md_5.bungee.api.plugin.Command
A command that can be executed by a
CommandSender.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidexecute(CommandSender sender, String[] args) Execute this command with the specified sender and arguments.
-
Constructor Details
-
Command
Construct a new command with no permissions or aliases.- Parameters:
name- the name of this command
-
Command
Construct a new command.- Parameters:
name- primary name of this commandpermission- the permission node required to execute this command, null or empty string allows it to be executed by everyonealiases- aliases which map back to this command
-
-
Method Details
-
execute
Execute this command with the specified sender and arguments.- Parameters:
sender- the executor of this commandargs- arguments used to invoke this command
-