Class PrivateArenaCreateEvent
java.lang.Object
org.bukkit.event.Event
me.harsh.privategamesaddon.api.events.PrivateArenaCreateEvent
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPrivateArenaCreateEvent(Arena arena, PartiesHook.Party party, Player partyLeader) -
Method Summary
Modifier and TypeMethodDescriptiongetArena()Get the arena that is about to be set to private.static HandlerListgetParty()Get the party for which the arena is being set to private.Get the player (party leader) who is setting the arena to private.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
-
PrivateArenaCreateEvent
-
-
Method Details
-
getArena
Get the arena that is about to be set to private.- Specified by:
getArenain interfaceArenaEvent- Returns:
- The involved arena
-
getParty
Get the party for which the arena is being set to private.- Returns:
- The involved party
-
getPartyLeader
Get the player (party leader) who is setting the arena to private.- Returns:
- The causing party leader
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-