public class IslandEnableFlagEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandEnableFlagEvent(SuperiorPlayer superiorPlayer,
Island island,
IslandFlag islandFlag)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
IslandFlag |
getIslandFlag()
Get the flag that was enabled.
|
SuperiorPlayer |
getPlayer()
Get the player that enabled the island flag for the island.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandEnableFlagEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, IslandFlag islandFlag)
superiorPlayer
- The player that enabled the island flag for the island.
If null, the flag was enabled by console.island
- The island that the flag was enabled for.islandFlag
- The flag that was enabled.@Nullable public SuperiorPlayer getPlayer()
public IslandFlag getIslandFlag()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable