public class WauzPlayerEventCitizenInn 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 org.bukkit.Location |
location
The location of the inn to sleep in.
|
core
Constructor and Description |
---|
WauzPlayerEventCitizenInn(java.lang.String citizenName,
org.bukkit.Location location)
Creates an event to sleep in the inn 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 org.bukkit.Location location
public WauzPlayerEventCitizenInn(java.lang.String citizenName, org.bukkit.Location location)
citizenName
- The name of the citizen to interact with.location
- The location of the inn to sleep in.public boolean execute(org.bukkit.entity.Player player)
execute
in interface WauzPlayerEvent
player
- The player for the execution.