public class WauzPlayerEventCitizenCommand extends java.lang.Object implements WauzPlayerEvent
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
citizenName
The name of the citizen to interact with.
|
private java.lang.String |
command
The name of the command to execute.
|
core| Constructor and Description |
|---|
WauzPlayerEventCitizenCommand(java.lang.String citizenName,
java.lang.String command)
Creates an event to execute the command of the given citizen.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(org.bukkit.entity.Player player)
Executes the event for the given player.
|
private java.lang.String citizenName
private java.lang.String command
public WauzPlayerEventCitizenCommand(java.lang.String citizenName,
java.lang.String command)
citizenName - The name of the citizen to interact with.command - The name of the command to execute.public boolean execute(org.bukkit.entity.Player player)
execute in interface WauzPlayerEventplayer - The player for the execution.