mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-27 04:25:14 +01:00
Fix wrong UUID version comparison logic
This commit is contained in:
parent
a95f7316d6
commit
ca94031ddf
@ -55,7 +55,7 @@ public class NameManager implements Listener {
|
||||
public static Account getOrCreateAccount(OfflinePlayer player) {
|
||||
Validate.notNull(player.getName(), "Name of player is null?");
|
||||
Validate.notNull(player.getUniqueId(), "UUID of player is null?");
|
||||
Validate.isTrue(player.getUniqueId().version() != uuidVersion, "Invalid OfflinePlayer! " + player.getUniqueId() + " is not of server version " + uuidVersion);
|
||||
Validate.isTrue(player.getUniqueId().version() == uuidVersion, "Invalid OfflinePlayer! " + player.getUniqueId() + " is not of server version " + uuidVersion);
|
||||
|
||||
Account account = getAccount(player.getUniqueId());
|
||||
if (account == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user