Class PrivateArenaCreateEvent

java.lang.Object
org.bukkit.event.Event
me.harsh.privategamesaddon.api.events.PrivateArenaCreateEvent
All Implemented Interfaces:
ArenaEvent, Cancellable

public class PrivateArenaCreateEvent extends Event implements ArenaEvent, Cancellable
Gets called when a party leader is about to turn an arena private.

More specifically, the arena was non-private before, and is now being set to private for the party of the leader.

  • Constructor Details

  • Method Details

    • getArena

      public Arena getArena()
      Get the arena that is about to be set to private.
      Specified by:
      getArena in interface ArenaEvent
      Returns:
      The involved arena
    • getParty

      public PartiesHook.Party getParty()
      Get the party for which the arena is being set to private.
      Returns:
      The involved party
    • getPartyLeader

      public Player getPartyLeader()
      Get the player (party leader) who is setting the arena to private.
      Returns:
      The causing party leader
    • getHandlers

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

      public static HandlerList getHandlerList()