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