Package de.marcely.bedwars.api.remote
Class RemotePlayerAddResult
java.lang.Object
de.marcely.bedwars.api.remote.RemotePlayerAddResult
Represents the result of what happened to the player that tried to enter an arena.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents a general result of what happened to all the players.static enumRepresents the result of a specific player. -
Constructor Summary
ConstructorsConstructorDescriptionRemotePlayerAddResult(AddRemotePlayerInfo info, @Nullable AddPlayerIssue issue) RemotePlayerAddResult(RemotePlayerAddResult.GeneralResult result, Map<UUID, Pair<RemotePlayerAddResult.PlayerResult, AddPlayerIssue>> players) -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of the general action.@Nullable AddPlayerIssuegetPlayerIssue(UUID uuid) Gets the issue that possibly caused the player to not join the arena.@Nullable RemotePlayerAddResult.PlayerResultgetPlayerResult(UUID uuid) Gets the result of a specific player.Gets the unique id of the players.booleanincludesPlayer(UUID uuid) Checks whether the given uuid was a part of the joining action.
-
Constructor Details
-
RemotePlayerAddResult
public RemotePlayerAddResult(RemotePlayerAddResult.GeneralResult result, Map<UUID, Pair<RemotePlayerAddResult.PlayerResult, AddPlayerIssue>> players) -
RemotePlayerAddResult
public RemotePlayerAddResult(Map<UUID, Pair<RemotePlayerAddResult.PlayerResult, AddPlayerIssue>> players) -
RemotePlayerAddResult
-
RemotePlayerAddResult
-
-
Method Details
-
getPlayerUniqueIds
Gets the unique id of the players.- Returns:
- The uuids of the players
-
getPlayerResult
Gets the result of a specific player.- Parameters:
uuid- The uuid of the player- Returns:
- The result.
nullin case the player hasn't been tried to be added in the first place
-
getPlayerIssue
Gets the issue that possibly caused the player to not join the arena.- Parameters:
uuid- The uuid of the player- Returns:
- The result.
nullin case the player hasn't been tried to be added in the first place or when the cause wasn't an issue
-
includesPlayer
Checks whether the given uuid was a part of the joining action.- Parameters:
uuid- The uuid of the player- Returns:
truein case he was
-
getGeneralResult
Returns the result of the general action.- Returns:
- The general result
-