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
Modifier and TypeClassDescriptionstatic enum
Represents a general result of what happened to all the players.static enum
Represents the result of a specific player. -
Constructor Summary
ConstructorDescriptionRemotePlayerAddResult
(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 AddPlayerIssue
getPlayerIssue
(UUID uuid) Gets the issue that possibly caused the player to not join the arena.@Nullable RemotePlayerAddResult.PlayerResult
getPlayerResult
(UUID uuid) Gets the result of a specific player.Gets the unique id of the players.boolean
includesPlayer
(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.
null
in 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.
null
in 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:
true
in case he was
-
getGeneralResult
Returns the result of the general action.- Returns:
- The general result
-