public abstract class Command
extends java.lang.Object
CommandSender.| Constructor and Description |
|---|
Command(java.lang.String name)
Construct a new command with no permissions or aliases.
|
Command(java.lang.String name,
java.lang.String permission,
java.lang.String... aliases)
Construct a new command.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
execute(CommandSender sender,
java.lang.String[] args)
Execute this command with the specified sender and arguments.
|
public Command(java.lang.String name)
name - the name of this commandpublic Command(java.lang.String name,
java.lang.String permission,
java.lang.String... aliases)
name - primary name of this commandpermission - the permission node required to execute this command,
null or empty string allows it to be executed by everyonealiases - aliases which map back to this commandpublic abstract void execute(CommandSender sender, java.lang.String[] args)
sender - the executor of this commandargs - arguments used to invoke this commandCopyright © 2015-2018 WaterfallMC. All Rights Reserved.