Package co.aikar.commands
Class BukkitRootCommand
- java.lang.Object
-
- org.bukkit.command.Command
-
- co.aikar.commands.BukkitRootCommand
-
- All Implemented Interfaces:
co.aikar.commands.RootCommand
public class BukkitRootCommand extends org.bukkit.command.Command implements co.aikar.commands.RootCommand
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(co.aikar.commands.BaseCommand command)booleanexecute(org.bukkit.command.CommandSender sender, String commandLabel, String[] args)List<co.aikar.commands.BaseCommand>getChildren()StringgetCommandName()co.aikar.commands.BaseCommandgetDefCommand()StringgetDescription()co.aikar.commands.CommandManagergetManager()com.google.common.collect.SetMultimap<String,co.aikar.commands.RegisteredCommand>getSubCommands()List<String>tabComplete(org.bukkit.command.CommandSender sender, String commandLabel, String[] args)booleantestPermissionSilent(org.bukkit.command.CommandSender target)-
Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, getAliases, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, toString, unregister
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceco.aikar.commands.RootCommand- Overrides:
getDescriptionin classorg.bukkit.command.Command
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein interfaceco.aikar.commands.RootCommand
-
tabComplete
public List<String> tabComplete(org.bukkit.command.CommandSender sender, String commandLabel, String[] args) throws IllegalArgumentException
- Overrides:
tabCompletein classorg.bukkit.command.Command- Throws:
IllegalArgumentException
-
execute
public boolean execute(org.bukkit.command.CommandSender sender, String commandLabel, String[] args)
- Specified by:
executein classorg.bukkit.command.Command
-
testPermissionSilent
public boolean testPermissionSilent(org.bukkit.command.CommandSender target)
- Overrides:
testPermissionSilentin classorg.bukkit.command.Command
-
addChild
public void addChild(co.aikar.commands.BaseCommand command)
- Specified by:
addChildin interfaceco.aikar.commands.RootCommand
-
getManager
public co.aikar.commands.CommandManager getManager()
- Specified by:
getManagerin interfaceco.aikar.commands.RootCommand
-
getSubCommands
public com.google.common.collect.SetMultimap<String,co.aikar.commands.RegisteredCommand> getSubCommands()
- Specified by:
getSubCommandsin interfaceco.aikar.commands.RootCommand
-
getChildren
public List<co.aikar.commands.BaseCommand> getChildren()
- Specified by:
getChildrenin interfaceco.aikar.commands.RootCommand
-
getDefCommand
public co.aikar.commands.BaseCommand getDefCommand()
- Specified by:
getDefCommandin interfaceco.aikar.commands.RootCommand
-
-