public interface PlayerSaveResult
The corresponding method can be found at
UserManager.savePlayerData(UUID, String).
| Modifier and Type | Interface and Description |
|---|---|
static class |
PlayerSaveResult.Outcome
The various states the result can take
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable Set<UUID> |
getOtherUniqueIds()
Gets the other uuids involved in the result.
|
@NonNull Set<PlayerSaveResult.Outcome> |
getOutcomes()
Gets the status returned by the operation
|
@Nullable String |
getPreviousUsername()
Gets the previous username involved in the result.
|
default boolean |
includes(@NonNull PlayerSaveResult.Outcome outcome)
Gets if the result includes a certain outcome.
|
@NonNull Set<PlayerSaveResult.Outcome> getOutcomes()
default boolean includes(@NonNull PlayerSaveResult.Outcome outcome)
outcome - the outcome to check for@Nullable String getPreviousUsername()
Returns null when the result doesn't include the
PlayerSaveResult.Outcome.USERNAME_UPDATED status.
PlayerSaveResult.Outcome.USERNAME_UPDATED@Nullable Set<UUID> getOtherUniqueIds()
Returns null when the result doesn't include the
PlayerSaveResult.Outcome.OTHER_UNIQUE_IDS_PRESENT_FOR_USERNAME status.
PlayerSaveResult.Outcome.OTHER_UNIQUE_IDS_PRESENT_FOR_USERNAME