public class WauzPlayerEventCitizenRest 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.
|
core
Constructor and Description |
---|
WauzPlayerEventCitizenRest(java.lang.String citizenName)
Creates an event to get healed by 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
public WauzPlayerEventCitizenRest(java.lang.String citizenName)
citizenName
- The name of the citizen to interact with.public boolean execute(org.bukkit.entity.Player player)
execute
in interface WauzPlayerEvent
player
- The player for the execution.DamageCalculator.setHealth(Player, int)