public class NukkitSimpleCommand extends NukkitCommand implements SimpleCommand
data| Constructor and Description |
|---|
NukkitSimpleCommand(Object object,
Method method,
String name,
CommandData data) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onCommand(CommandSender sender,
String commandLabel,
String[] args) |
void |
sendInGameMessage(MessageRecipient recipient) |
void |
sendUsageMessage(MessageRecipient recipient) |
void |
setForbidConsole(boolean forbidConsole) |
void |
setMaxArgs(int maxArgs) |
void |
setMinArgs(int minArgs) |
getData, getExecutor, getName, testPermission, testPermissionSilent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetData, getExecutor, getName, testPermission, testPermissionSilentpublic NukkitSimpleCommand(Object object, Method method, String name, CommandData data)
public void setForbidConsole(boolean forbidConsole)
setForbidConsole in interface SimpleCommandpublic void setMaxArgs(int maxArgs)
setMaxArgs in interface SimpleCommandpublic void setMinArgs(int minArgs)
setMinArgs in interface SimpleCommandpublic void sendUsageMessage(MessageRecipient recipient)
sendUsageMessage in interface SimpleCommandpublic void sendInGameMessage(MessageRecipient recipient)
sendInGameMessage in interface SimpleCommandpublic boolean onCommand(CommandSender sender, String commandLabel, String[] args)
onCommand in interface CommandExecutoronCommand in class NukkitCommandCopyright © 2017–2020 NukkitX. All rights reserved.