Package net.luckperms.api.model
Interface PlayerSaveResult
public interface PlayerSaveResult
Encapsulates the result of an operation to save uuid data about a player.
The corresponding method can be found at
UserManager.savePlayerData(UUID, String)
.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The various states the result can take -
Method Summary
Modifier and TypeMethodDescriptionGets the other uuids involved in the result.Gets the status returned by the operationGets the previous username involved in the result.default boolean
includes
(@NonNull PlayerSaveResult.Outcome outcome) Gets if the result includes a certain outcome.
-
Method Details
-
getOutcomes
@NonNull @Unmodifiable Set<PlayerSaveResult.Outcome> getOutcomes()Gets the status returned by the operation- Returns:
- the status
-
includes
Gets if the result includes a certain outcome.- Parameters:
outcome
- the outcome to check for- Returns:
- if the result includes the outcome
-
getPreviousUsername
Gets the previous username involved in the result.Returns null when the result doesn't
include
thePlayerSaveResult.Outcome.USERNAME_UPDATED
status.- Returns:
- the previous username
- See Also:
-
getOtherUniqueIds
@Nullable @Unmodifiable Set<UUID> getOtherUniqueIds()Gets the other uuids involved in the result.Returns null when the result doesn't
include
thePlayerSaveResult.Outcome.OTHER_UNIQUE_IDS_PRESENT_FOR_USERNAME
status.- Returns:
- the other uuids
- See Also:
-