TCheckpoint
This commit is contained in:
parent
e0914b029b
commit
afd920242b
17 changed files with 110 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue