public class IslandSetVisitorHomeEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandSetVisitorHomeEvent(SuperiorPlayer superiorPlayer,
Island island,
org.bukkit.Location islandVisitorHome)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.Location |
getIslandVisitorHome()
Get the new island visitor home location of the island.
|
SuperiorPlayer |
getPlayer()
Get the player who changed the island home, if exists.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setIslandHome(org.bukkit.Location islandVisitorHome)
Set the new visitor home location of the island.
|
getHandlerList, getHandlers, getIsland
public IslandSetVisitorHomeEvent(SuperiorPlayer superiorPlayer, Island island, org.bukkit.Location islandVisitorHome)
superiorPlayer
- The player that changed the island visitor home.island
- The island that the visitor home was changed for.islandVisitorHome
- The new island visitor home of the island.public SuperiorPlayer getPlayer()
public org.bukkit.Location getIslandVisitorHome()
public void setIslandHome(org.bukkit.Location islandVisitorHome)
islandVisitorHome
- The new home visitor location for the island.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable