public class IslandRenameWarpEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandRenameWarpEvent(SuperiorPlayer superiorPlayer,
Island island,
IslandWarp islandWarp,
java.lang.String warpName)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
IslandWarp |
getIslandWarp()
Get the warp that was renamed.
|
SuperiorPlayer |
getPlayer()
Get the player that renamed the warp.
|
java.lang.String |
getWarpName()
Get the new name of the warp.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setWarpName(java.lang.String warpName)
Set the new name for the warp.
|
getHandlerList, getHandlers, getIsland
public IslandRenameWarpEvent(SuperiorPlayer superiorPlayer, Island island, IslandWarp islandWarp, java.lang.String warpName)
superiorPlayer
- The player that renamed the warp.island
- The island of the warp.islandWarp
- The warp that was renamed.warpName
- The new name of the warp.public SuperiorPlayer getPlayer()
public IslandWarp getIslandWarp()
public java.lang.String getWarpName()
public void setWarpName(java.lang.String warpName)
warpName
- The new warp 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