Class BasicsCommand
-
- All Implemented Interfaces:
public final class BasicsCommand extends Command
Represents a registered command. This is what is actually registered to Bukkit.
-
-
Field Summary
Fields Modifier and Type Field Description private CommandInfo
info
private final CoreMessages
coreMessages
private final MessageFactory
messageFactory
public final CustomTimingsHandler
timings
-
Method Summary
Modifier and Type Method Description final CommandInfo
getInfo()
Command info final Unit
setInfo(CommandInfo info)
Command info final CoreMessages
getCoreMessages()
final MessageFactory
getMessageFactory()
Boolean
execute(CommandSender sender, String commandLabel, Array<out String> origArgs)
List<String>
tabComplete(CommandSender sender, String alias, Array<out String> args, Location location)
final Unit
disableExecutor()
Disable this command's executor by setting it to null. -
Methods inherited from class org.bukkit.command.Command
getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getInfo
final CommandInfo getInfo()
Command info
-
setInfo
final Unit setInfo(CommandInfo info)
Command info
-
getCoreMessages
final CoreMessages getCoreMessages()
-
getMessageFactory
final MessageFactory getMessageFactory()
-
tabComplete
List<String> tabComplete(CommandSender sender, String alias, Array<out String> args, Location location)
-
disableExecutor
final Unit disableExecutor()
Disable this command's executor by setting it to null. Disabled commands will always return true and print a message to the sender.
-
-
-
-