public class NukkitCommand extends Object implements Command
| Modifier and Type | Field and Description |
|---|---|
protected CommandData |
data |
| Constructor and Description |
|---|
NukkitCommand(String name,
CommandExecutor executor,
CommandData data) |
| Modifier and Type | Method and Description |
|---|---|
CommandData |
getData() |
CommandExecutor |
getExecutor() |
String |
getName() |
boolean |
onCommand(CommandSender sender,
String label,
String[] args) |
boolean |
testPermission(CommandSender target) |
boolean |
testPermissionSilent(CommandSender target) |
String |
toString() |
protected final CommandData data
public NukkitCommand(String name, CommandExecutor executor, CommandData data)
public CommandExecutor getExecutor()
getExecutor in interface Commandpublic CommandData getData()
public boolean testPermission(CommandSender target)
testPermission in interface Commandpublic boolean testPermissionSilent(CommandSender target)
testPermissionSilent in interface Commandpublic boolean onCommand(CommandSender sender, String label, String[] args)
onCommand in interface CommandExecutorCopyright © 2017–2019 NukkitX. All rights reserved.