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