public class IslandSetHomeEvent extends IslandEvent implements org.bukkit.event.Cancellable
Modifier and Type | Class and Description |
---|---|
static class |
IslandSetHomeEvent.Reason
The reason the home was changed.
|
island
Constructor and Description |
---|
IslandSetHomeEvent(Island island,
org.bukkit.Location islandHome,
IslandSetHomeEvent.Reason reason,
SuperiorPlayer superiorPlayer)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.Location |
getIslandHome()
Get the new island home location of the island.
|
SuperiorPlayer |
getPlayer()
Get the player who changed the island home, if exists.
|
IslandSetHomeEvent.Reason |
getReason()
Get the reason the home was changed.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setIslandHome(org.bukkit.Location islandHome)
Set the new home location of the island.
|
getHandlerList, getHandlers, getIsland
public IslandSetHomeEvent(Island island, org.bukkit.Location islandHome, IslandSetHomeEvent.Reason reason, @Nullable SuperiorPlayer superiorPlayer)
island
- The island that the home was changed for.islandHome
- The new island home of the island.reason
- The reason the home was changed.superiorPlayer
- The player that changed the island home, if existspublic org.bukkit.Location getIslandHome()
public void setIslandHome(org.bukkit.Location islandHome)
islandHome
- The home location for the island.public IslandSetHomeEvent.Reason getReason()
@Nullable public SuperiorPlayer getPlayer()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable