Class ArenaRenameEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaRenameEvent
All Implemented Interfaces:
ArenaEvent, Cancellable

public class ArenaRenameEvent extends Event implements ArenaEvent, Cancellable
Gets called whenever an existing arena shall be renamed.
  • Constructor Details

    • ArenaRenameEvent

      public ArenaRenameEvent(Arena arena, String oldName, String newName)
  • Method Details

    • getArena

      public Arena getArena()
      Description copied from interface: ArenaEvent
      Returns the Arena that is involved in this event.
      Specified by:
      getArena in interface ArenaEvent
      Returns:
      The arena that is involved
    • getOldName

      public String getOldName()
      Gets the current name of the arena.
      Returns:
      The old name
    • getNewName

      public String getNewName()
      Gets the possibly new name of the arena.
      Returns:
      The new name
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()