public class IslandRenameEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandRenameEvent(Island island,
SuperiorPlayer superiorPlayer,
java.lang.String islandName)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIslandName()
Get the new name of the island.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the privilege to the other player.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setIslandName(java.lang.String islandName)
Set the new name of the island.
|
getHandlerList, getHandlers, getIsland
public IslandRenameEvent(Island island, @Nullable SuperiorPlayer superiorPlayer, java.lang.String islandName)
island
- The island that was renamed.superiorPlayer
- The player that renamed the island.
If null, the island was renamed by console.islandName
- The new name of the island.@Nullable public SuperiorPlayer getPlayer()
public java.lang.String getIslandName()
public void setIslandName(java.lang.String islandName)
islandName
- The new name to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable