Class ArenaRenameEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaRenameEvent
- All Implemented Interfaces:
ArenaEvent,Cancellable
Gets called whenever an existing arena shall be renamed.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArena()Returns theArenathat is involved in this event.static HandlerListGets the possibly new name of the arena.Gets the current name of the arena.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
ArenaRenameEvent
-
-
Method Details
-
getArena
Description copied from interface:ArenaEventReturns theArenathat is involved in this event.- Specified by:
getArenain interfaceArenaEvent- Returns:
- The arena that is involved
-
getOldName
Gets the current name of the arena.- Returns:
- The old name
-
getNewName
Gets the possibly new name of the arena.- Returns:
- The new name
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-