mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Use UUIDs to store levels
This commit is contained in:
1 parent
e0cefc9ab4
commit
2e1fc45dc4
5 files changed
+138
-90
No files matched your search
@@ -57,7 +57,7 @@ public class User {
|
||||
*/
|
||||
public User(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
this.name = getPlayer().getName();
|
||||
this.name = getPlayer() != null && getPlayer().isOnline() ? getPlayer().getName() : "";
|
||||
this.id = getPlayer() != null && getPlayer().isOnline() ? getPlayer().getEntityId() : -1;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ public class User {
|
||||
* @return Player
|
||||
*/
|
||||
public Player getPlayer() {
|
||||
return Bukkit.getPlayer(uuid);
|
||||
return Bukkit.getPlayer(uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user