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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArena()The arena that he is about to join.static HandlerList@Nullable AddPlayerIssuegetIssue()Get the issue that may prevent the player from joining the arena.The player that is about to join the arena.booleanhasIssue()Get if any issue has been added so far, that'd prevent the player from joining.voidsetIssue(@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:
getArenain interfaceArenaEvent- Returns:
- The involved arena
-
setIssue
Add an issue that may prevent the player from joining the arena.- Parameters:
issue- The new issue.nullif there is not supposed to be any issue
-
getIssue
Get the issue that may prevent the player from joining the arena.- Returns:
- The issue.
nullif 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:
trueif there's an issue
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-