fix: removed legacy gameprofile value

since mojang account migration has ended, there are no more legacy accounts.
This commit is contained in:
J-onasJones 2023-09-21 21:19:22 +02:00
parent c23bcd09d2
commit ab1ab33446
4 changed files with 4 additions and 6 deletions

View file

@ -39,13 +39,13 @@ public class McWebserver implements ModInitializer {
//start collecting api info
ApiHandler.startHandler();
LOGGER.info("Server API enabled!");
if (ADV_API_ENABLED) {
/*if (ADV_API_ENABLED) {
//start collecting advanced api info
ApiHandler.startAdvHandler();
LOGGER.info("Advanced Server API enabled!");
} else {
LOGGER.info("Advanced Server API disabled in the config file.");
}
}*/
} else {
LOGGER.info("Server API disabled in the config file.");
}

View file

@ -80,7 +80,7 @@ public class ApiHandler {
});
}
public static void startAdvHandler() {
/*public static void startAdvHandler() {
ServerTickEvents.END_SERVER_TICK.register(server -> {
if (server.isRunning()) {
ApiRequestsUtil.setSERVER_PLAYER_ENTITY_LIST(server.getPlayerManager().getPlayerList());
@ -93,6 +93,6 @@ public class ApiHandler {
//SERVER_PLAYER_ENTITY_LIST = server.getPlayerInteractionManager().getPlayerList();
}
});
}
}*/
}

View file

@ -95,7 +95,6 @@ public class ApiRequestsUtil {
player.setID(profile.getId().toString());
player.setNAME(profile.getName());
//player.setPROPERTIES(profile.getProperties().toString()); //Add support for the properties later
player.setLEGACY(profile.isLegacy());
players.add(player);
}
return players;

View file

@ -7,5 +7,4 @@ public class ApiServerMetadataPlayer {
private String ID;
private String NAME;
private String PROPERTIES;
private Boolean LEGACY;
}