public static enum PlayerSaveResult.Status extends Enum<PlayerSaveResult.Status>
| Enum Constant and Description |
|---|
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.
|
OTHER_UUIDS_PRESENT_FOR_USERNAME
There was already a record for the username saved, but it was under a different uuid.
|
USERNAME_UPDATED
There was already a record for the UUID saved, but it was for a different username.
|
| Modifier and Type | Method and Description |
|---|---|
static PlayerSaveResult.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlayerSaveResult.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerSaveResult.Status CLEAN_INSERT
public static final PlayerSaveResult.Status NO_CHANGE
public static final PlayerSaveResult.Status USERNAME_UPDATED
This is normal, players are able to change their usernames.
public static final PlayerSaveResult.Status OTHER_UUIDS_PRESENT_FOR_USERNAME
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.
public static PlayerSaveResult.Status[] values()
for (PlayerSaveResult.Status c : PlayerSaveResult.Status.values()) System.out.println(c);
public static PlayerSaveResult.Status valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null