TCheckpoint

This commit is contained in:
Gokalp Sen 2025-06-06 01:06:38 +03:00
parent e0914b029b
commit afd920242b
17 changed files with 110 additions and 14 deletions

View file

@ -43,6 +43,10 @@ public class PlayerMetadata {
metadata = new PlayerMetadata(player);
}
PerSessionDataStorage.dataStore.put("metadata-" + player.getUniqueId(), Map.of(metadata, PlayerMetadata.class));
// Set display name to nickname if different
if (metadata.nickname != null && !metadata.nickname.equals(player.getDisplayName())) {
player.setDisplayName(metadata.nickname);
}
return metadata;
}
else {
@ -51,5 +55,4 @@ public class PlayerMetadata {
return metadata;
}
}
}
}