Class DimensionsCommandManager
java.lang.Object
me.xxastaspastaxx.dimensions.commands.DimensionsCommandManager
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Class to register and manage the Dimensions commands
-
Constructor Summary
ConstructorDescriptionContruct the manager and set the command executor for the command /dimensions -
Method Summary
Modifier and TypeMethodDescriptionGet the list of the admin commandsGet the list of the non-admin commandsboolean
onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args)
Check if the command is registered and execute itvoid
Register a new DimensionsCommandvoid
Unregister a command
-
Constructor Details
-
DimensionsCommandManager
Contruct the manager and set the command executor for the command /dimensions- Parameters:
main
- the instance of the Dimensions lpugin
-
-
Method Details
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args)Check if the command is registered and execute it- Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
-
getCommands
Get the list of the non-admin commands- Returns:
- the list of the non-admin commands
-
getAdminCommands
Get the list of the admin commands- Returns:
- the list of the admin commands
-
registerCommand
Register a new DimensionsCommand- Parameters:
cmd
- the command instance
-
unregisterCommand
Unregister a command- Parameters:
cmd
- the instance of the command
-