public class IslandRenameWarpCategoryEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandRenameWarpCategoryEvent(SuperiorPlayer superiorPlayer,
Island island,
WarpCategory warpCategory,
java.lang.String categoryName)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategoryName()
Get the new name of the warp-category.
|
SuperiorPlayer |
getPlayer()
Get the player that renamed the warp-category.
|
WarpCategory |
getWarpCategory()
Get the warp-category that was renamed.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setCategoryName(java.lang.String categoryName)
Set the new name for the warp-category.
|
getHandlerList, getHandlers, getIsland
public IslandRenameWarpCategoryEvent(SuperiorPlayer superiorPlayer, Island island, WarpCategory warpCategory, java.lang.String categoryName)
superiorPlayer
- The player that renamed the warp-category.island
- The island of the warp-category.warpCategory
- The warp-category that was renamed.categoryName
- The new name of the warp-category.public SuperiorPlayer getPlayer()
public WarpCategory getWarpCategory()
public java.lang.String getCategoryName()
public void setCategoryName(java.lang.String categoryName)
categoryName
- The new warp-category 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