add raw profile properties to the player endpoint
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m35s

This commit is contained in:
Lee
2024-04-11 00:15:12 +01:00
parent 0ea69f86f9
commit 624dcc0be6
4 changed files with 13 additions and 5 deletions

View File

@ -34,9 +34,15 @@ public class Player {
*/
private Cape cape;
/**
* The raw properties of the player
*/
private MojangProfile.ProfileProperty[] rawProperties;
public Player(MojangProfile profile) {
this.uuid = UUIDUtils.addDashes(profile.getId());
this.username = profile.getName();
this.rawProperties = profile.getProperties();
// Get the skin and cape
Tuple<Skin, Cape> skinAndCape = profile.getSkinAndCape();