Package me.bimmr.bimmcore.commands
Class CommandHandler
- java.lang.Object
-
- me.bimmr.bimmcore.commands.CommandHandler
-
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
public class CommandHandler extends java.lang.Object implements org.bukkit.command.TabCompleter, org.bukkit.command.CommandExecutor
The Manager for the commands
-
-
Constructor Summary
Constructors Constructor Description CommandHandler(org.bukkit.plugin.java.JavaPlugin plugin, java.lang.String command, FancyMessage information, java.lang.String unknownCommand)
-
Method Summary
Modifier and Type Method Description SubCommand
getSubcommand(java.lang.String command)
SubCommand
getSubCommand(java.lang.String cmdName)
java.util.ArrayList<SubCommand>
getSubCommands()
boolean
isSubCommand(java.lang.String command)
boolean
onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, java.lang.String label, java.lang.String[] args)
java.util.List<java.lang.String>
onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, java.lang.String alias, java.lang.String[] args)
void
registerSubCommand(SubCommand subCommand)
void
unRegisterSubCommand(SubCommand subCommand)
-
-
-
Constructor Detail
-
CommandHandler
public CommandHandler(org.bukkit.plugin.java.JavaPlugin plugin, java.lang.String command, FancyMessage information, java.lang.String unknownCommand)
-
-
Method Detail
-
getSubcommand
public SubCommand getSubcommand(java.lang.String command)
-
getSubCommand
public SubCommand getSubCommand(java.lang.String cmdName)
-
getSubCommands
public java.util.ArrayList<SubCommand> getSubCommands()
-
isSubCommand
public boolean isSubCommand(java.lang.String command)
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, java.lang.String label, java.lang.String[] args)
- Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
-
onTabComplete
public java.util.List<java.lang.String> onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, java.lang.String alias, java.lang.String[] args)
- Specified by:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
-
registerSubCommand
public void registerSubCommand(SubCommand subCommand)
-
unRegisterSubCommand
public void unRegisterSubCommand(SubCommand subCommand)
-
-