public class IslandCloseWarpEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandCloseWarpEvent(SuperiorPlayer superiorPlayer,
Island island,
IslandWarp islandWarp)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
IslandWarp |
getIslandWarp()
Get the warp that was closed.
|
SuperiorPlayer |
getPlayer()
Get the player that closed the warp to the public.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandCloseWarpEvent(SuperiorPlayer superiorPlayer, Island island, IslandWarp islandWarp)
superiorPlayer
- The player that closed the warp to the public.island
- The island of the warp.islandWarp
- The warp that was closed.public SuperiorPlayer getPlayer()
public IslandWarp getIslandWarp()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable