public class IslandChangeDiscordEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeDiscordEvent(SuperiorPlayer superiorPlayer,
Island island,
java.lang.String discord)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDiscord()
Get the new discord of the island.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the discord of the island.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setDiscord(java.lang.String discord)
Set the new discord for the island.
|
getHandlerList, getHandlers, getIsland
public IslandChangeDiscordEvent(SuperiorPlayer superiorPlayer, Island island, java.lang.String discord)
superiorPlayer
- The player that changed the discord of the island.island
- The island that the discord was changed for.discord
- The new discord of the islandpublic SuperiorPlayer getPlayer()
public java.lang.String getDiscord()
public void setDiscord(java.lang.String discord)
discord
- The new discord to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable