public class WauzPlayerEventCitizenTravel 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 WauzWaypoint |
waypoint
The waypoint to teleport to.
|
core| Constructor and Description |
|---|
WauzPlayerEventCitizenTravel(java.lang.String citizenName,
WauzWaypoint waypoint)
Creates an event to travel to a waypoint 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 WauzWaypoint waypoint
public WauzPlayerEventCitizenTravel(java.lang.String citizenName,
WauzWaypoint waypoint)
citizenName - The name of the citizen to interact with.waypoint - The waypoint to teleport to.public boolean execute(org.bukkit.entity.Player player)
execute in interface WauzPlayerEventplayer - The player for the execution.WauzTeleporter.waypointTeleport(Player, String)