Package nl.mtvehicles.core.commands
Class VehicleSubCommandManager
java.lang.Object
nl.mtvehicles.core.infrastructure.models.MTVCommand
nl.mtvehicles.core.commands.VehicleSubCommandManager
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Command executor for /mtv command (managing subcommands)
-
Field Summary
Fields inherited from class nl.mtvehicles.core.infrastructure.models.MTVCommand
commandSender
-
Constructor Summary
-
Method Summary
Methods inherited from class nl.mtvehicles.core.infrastructure.models.MTVCommand
onCommand, sendMessage
-
Field Details
-
CMD_NAME
Name of the command
-
-
Constructor Details
-
VehicleSubCommandManager
public VehicleSubCommandManager()Constructor which registers all subcommands
-
-
Method Details
-
execute
public boolean execute(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args)Description copied from class:MTVCommand
Code executed on use of the command- Specified by:
execute
in classMTVCommand
- Parameters:
sender
- Source of the commandcmd
- Command which was executedlabel
- Alias of the command which was usedargs
- Passed command arguments- Returns:
- True if successful
-