public class CoopLeaveEvent extends ASkyBlockEvent implements org.bukkit.event.Cancellable
Constructor and Description |
---|
CoopLeaveEvent(java.util.UUID expelledPlayer,
java.util.UUID expellingPlayer,
com.wasteofplastic.askyblock.Island island)
Note that not all coop leaving events can be cancelled because they could be due to bigger events than
coop, e.g., an island being reset.
|
Modifier and Type | Method and Description |
---|---|
java.util.UUID |
getExpeller() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancel) |
getHandlerList, getHandlers, getIsland, getIslandDistance, getIslandLocation, getIslandOwner, getPlayer, getProtectionSize, getTeamLeader, isLocked
public CoopLeaveEvent(java.util.UUID expelledPlayer, java.util.UUID expellingPlayer, com.wasteofplastic.askyblock.Island island)
expelledPlayer
- expellingPlayer
- island
- public java.util.UUID getExpeller()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancel)
setCancelled
in interface org.bukkit.event.Cancellable