Class CommandContext
java.lang.Object
com.zetaplugins.zetacore.commands.CommandContext
Context for a command execution, containing the sender, command, label, and arguments.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandContext(CommandSender sender, Command command, String label, ArgumentList args) -
Method Summary
-
Constructor Details
-
CommandContext
-
-
Method Details
-
getSender
Get the sender of the command.- Returns:
- The CommandSender
-
getCommand
Get the command that was executed.- Returns:
- The Command
-
getLabel
Get the label (alias) used to execute the command.- Returns:
- The command label
-
getArgs
Get the arguments passed to the command.- Returns:
- The ArgumentList
-