Class PlayerRejoinArenaEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerRejoinArenaEvent
- All Implemented Interfaces:
- ArenaEvent
Player attempts to get added back to an arena after having quit it in the past.
 
   Commonly, this is used when a player attempts to rejoin a running game.
   There is a special case however, and that is specators getting added into an already ended game, see RejoinPlayerCause.END_LOBBY.
 
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerRejoinArenaEvent(Player player, Arena arena, RejoinPlayerCause cause, @Nullable QuitPlayerMemory memory, Set<RejoinPlayerIssue> issues) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaddIssue(RejoinPlayerIssue issue) Adds an issue which causes the player to not be able to rejoin the arena.getCause()Returns the cause why the player is rejoining the arena.static HandlerListReturns all issues there are for the player to rejoin the arena.@Nullable QuitPlayerMemoryReturns the memory of the player that contains all info needed to successfully make him rejoin the arena.booleanReturns if the player has any issues rejoining the arena.booleanremoveIssue(RejoinPlayerIssue issue) Removes an issue.Methods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronousMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEventgetArena
- 
Constructor Details- 
PlayerRejoinArenaEventpublic PlayerRejoinArenaEvent(Player player, Arena arena, RejoinPlayerCause cause, @Nullable @Nullable QuitPlayerMemory memory, Set<RejoinPlayerIssue> issues) 
 
- 
- 
Method Details- 
getCauseReturns the cause why the player is rejoining the arena.- Returns:
- The cause
 
- 
getMemoryReturns the memory of the player that contains all info needed to successfully make him rejoin the arena.It's possible that it's nullas no memory was found for the player.- Returns:
- The memory of the player. Possibly null
 
- 
hasIssuespublic boolean hasIssues()Returns if the player has any issues rejoining the arena.- Returns:
- If there are issues which cause the player not being able to rejoin the arena
 
- 
getIssuesReturns all issues there are for the player to rejoin the arena.- Returns:
- The issues why the player can't rejoin the arena
 
- 
addIssueAdds an issue which causes the player to not be able to rejoin the arena.- Parameters:
- issue- The issue that shall be added
- Returns:
- falseif that issue already existed before
 
- 
removeIssueRemoves an issue. If all were removed the player will be able to rejoin the arena.- Parameters:
- issue- The issue that shall be removed
- Returns:
- trueif it has been removed
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-