public class IslandRemoveEffectEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandRemoveEffectEvent(SuperiorPlayer superiorPlayer,
Island island,
org.bukkit.potion.PotionEffectType effectType)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.potion.PotionEffectType |
getEffectType()
Get the effect that was removed from the island.
|
SuperiorPlayer |
getPlayer()
Get the player that removed the effect level.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandRemoveEffectEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, org.bukkit.potion.PotionEffectType effectType)
superiorPlayer
- The player that removed the effect level of an island.
If set to null, it means the effect was removed via the console.island
- The island that the effect level was removed for.effectType
- The effect that was removed from the island.@Nullable public SuperiorPlayer getPlayer()
public org.bukkit.potion.PotionEffectType getEffectType()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable