Class RemotePlayerPreJoinLocalArenaEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.remote.RemotePlayerPreJoinLocalArenaEvent
- All Implemented Interfaces:
ArenaEvent
Gets called right before a player is being pulled into this server to join an arena.
Keep in mind that this event is async.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArena()
The arena that he is about to join.static HandlerList
@Nullable AddPlayerIssue
getIssue()
Get the issue that may prevent the player from joining the arena.The player that is about to join the arena.boolean
hasIssue()
Get if any issue has been added so far, that'd prevent the player from joining.void
setIssue
(@Nullable AddPlayerIssue issue) Add an issue that may prevent the player from joining the arena.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
RemotePlayerPreJoinLocalArenaEvent
-
-
Method Details
-
getPlayer
The player that is about to join the arena.- Returns:
- The involved player
-
getArena
The arena that he is about to join.- Specified by:
getArena
in interfaceArenaEvent
- Returns:
- The involved arena
-
setIssue
Add an issue that may prevent the player from joining the arena.- Parameters:
issue
- The new issue.null
if there is not supposed to be any issue
-
getIssue
Get the issue that may prevent the player from joining the arena.- Returns:
- The issue.
null
if there is not supposed to be any issue
-
hasIssue
public boolean hasIssue()Get if any issue has been added so far, that'd prevent the player from joining.- Returns:
true
if there's an issue
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-