Package net.luckperms.api.model
Enum Class PlayerSaveResult.Outcome
- All Implemented Interfaces:
Serializable,Comparable<PlayerSaveResult.Outcome>,java.lang.constant.Constable
- Enclosing interface:
- PlayerSaveResult
The various states the result can take
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThere was no existing data saved for either the uuid or usernameThere was existing data for the player, no change was needed.There was already a record for the username saved, but it was under a different uuid.There was already a record for the UUID saved, but it was for a different username. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerSaveResult.OutcomeReturns the enum constant of this class with the specified name.static PlayerSaveResult.Outcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLEAN_INSERT
There was no existing data saved for either the uuid or username -
NO_CHANGE
There was existing data for the player, no change was needed. -
USERNAME_UPDATED
There was already a record for the UUID saved, but it was for a different username.This is normal, players are able to change their usernames.
-
OTHER_UNIQUE_IDS_PRESENT_FOR_USERNAME
There was already a record for the username saved, but it was under a different uuid.This is a bit of a cause for concern. It's possible that "player1" has changed their username to "player2", and "player3" has changed their username to "player1". If the original "player1" doesn't join after changing their name, this conflict could occur.
However, what's more likely is that the server is not setup to authenticate correctly. Usually this is a problem with BungeeCord "ip-forwarding", but could be that the user of the plugin is running a network off a shared database with one server in online mode and another in offline mode.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-