mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2025-07-28 00:12:46 +00:00
Migrate to UUID usage
This commit is contained in:
parent
e8476d5b05
commit
d988becf1f
4 changed files with 28 additions and 20 deletions
|
@ -34,7 +34,7 @@ public class PlayerDataManager {
|
|||
public Player loadPlayer(UUID uuid) {
|
||||
try {
|
||||
OfflinePlayer player = Bukkit.getOfflinePlayer(uuid);
|
||||
if (player == null) {
|
||||
if (player == null || !player.hasPlayedBefore()) {
|
||||
return null;
|
||||
}
|
||||
GameProfile profile = new GameProfile(uuid, player.getName());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue