public abstract class Command extends Object
| Constructor and Description |
|---|
Command()
Create a command object.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
execute(Player player)
Execute this command.
|
String |
getSecondWord()
Return the second word of this command.
|
boolean |
hasSecondWord()
Check whether a second word was entered for this
command.
|
void |
setSecondWord(String secondWord)
Define the second word of this command (the word
entered after the command word).
|
public Command()
public String getSecondWord()
public boolean hasSecondWord()
public void setSecondWord(String secondWord)
secondWord - The value to use for the second wordpublic abstract boolean execute(Player player)
player - The player executing the command