public class IslandInviteEvent extends IslandEvent implements org.bukkit.event.Cancellable
island| Constructor and Description |
|---|
IslandInviteEvent(SuperiorPlayer superiorPlayer,
SuperiorPlayer targetPlayer,
Island island)
The constructor for the event.
|
| Modifier and Type | Method and Description |
|---|---|
SuperiorPlayer |
getPlayer()
Get the player who sent the invite request.
|
SuperiorPlayer |
getTarget()
Get the player who received the invite request.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIslandpublic IslandInviteEvent(SuperiorPlayer superiorPlayer, SuperiorPlayer targetPlayer, Island island)
superiorPlayer - The player who sent the invite request.targetPlayer - The player who received the invite request.island - The island that the player was invited into.public SuperiorPlayer getPlayer()
public SuperiorPlayer getTarget()
public boolean isCancelled()
isCancelled in interface org.bukkit.event.Cancellablepublic void setCancelled(boolean cancelled)
setCancelled in interface org.bukkit.event.Cancellable