Class PrivateArenaJoinEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
me.harsh.privategamesaddon.api.events.PrivateArenaJoinEvent
- All Implemented Interfaces:
ArenaEvent
Gets called when a player attempts to join a private arena.
This includes both members and non-members of the party.
This event is not called if the arena is just turned private due to the joining
player (use PrivateArenaCreateEvent for that). It is also not called if the
arena is public.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines what is the outcome of a player's attempt to join a private arena. -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPrivateArenaJoinEvent(Player player, Arena arena, PrivateArenaJoinEvent.Result result) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListGet the result of the join attempt.voidSet the result of the join attempt.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods 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 de.marcely.bedwars.api.event.arena.ArenaEvent
getArena
-
Constructor Details
-
PrivateArenaJoinEvent
-
-
Method Details
-
getResult
Get the result of the join attempt.- Returns:
- The join result
-
setResult
Set the result of the join attempt.- Parameters:
result- The new join result
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-