Package cn.nukkit.command.simple
Class SimpleCommand
java.lang.Object
cn.nukkit.command.Command
cn.nukkit.command.simple.SimpleCommand
- All Implemented Interfaces:
GenericParameter
- Author:
- Tee7even
-
Nested Class Summary
Nested classes/interfaces inherited from interface cn.nukkit.command.data.GenericParameter
GenericParameter.CommandParameterSupplier<T>
-
Field Summary
Fields inherited from class cn.nukkit.command.Command
commandData, commandParameters, description, paramTree, timing, usageMessage
Fields inherited from interface cn.nukkit.command.data.GenericParameter
CHAINED_COMMAND, ITEM_NAME, OBJECTIVES, ORIGIN, TARGET_OBJECTIVES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(CommandSender sender, String commandLabel, String[] args) void
sendInGameMessage
(CommandSender sender) void
sendUsageMessage
(CommandSender sender) void
setForbidConsole
(boolean forbidConsole) void
setMaxArgs
(int maxArgs) void
setMinArgs
(int minArgs) Methods inherited from class cn.nukkit.command.Command
addCommandParameters, allowChangesFrom, broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, enableParamTree, execute, generateCustomCommandData, generateDefaultData, getAliases, getCommandFormatTips, getCommandParameters, getCommandParameters, getDefaultCommandData, getDescription, getLabel, getName, getOverloads, getParamTree, getPermission, getPermissionMessage, getUsage, hasParamTree, isRegistered, parseTilde, register, setAliases, setCommandParameters, setDescription, setLabel, setPermission, setPermissionMessage, setUsage, testPermission, testPermissionSilent, toString, unregister