Package de.marcely.bedwars.api.remote
Class RemoteSpectatorAddResult
java.lang.Object
de.marcely.bedwars.api.remote.RemoteSpectatorAddResult
Represents the result of a player that tried to get added as a spectator.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents the exact result of what happened to the player that tried to spectate. -
Constructor Summary
ConstructorDescriptionRemoteSpectatorAddResult
(UUID playerUUID, RemoteSpectatorAddResult.Result result) -
Method Summary
Modifier and TypeMethodDescriptionThe unique id of the player.Gets what exactly happendboolean
Gets whether it was successful
-
Constructor Details
-
RemoteSpectatorAddResult
-
-
Method Details
-
getPlayerUniqueId
The unique id of the player.- Returns:
- The uuid of the player
-
wasSuccessful
public boolean wasSuccessful()Gets whether it was successful- Returns:
true
if it was successful
-
getResult
Gets what exactly happend- Returns:
- The exact result
-