Model Fix
To retrieve a UUID, query the player model instead of the application model.master
parent
2533fe7a7e
commit
7f5a45c93c
|
@ -100,7 +100,7 @@ public class MCMUtil {
|
|||
try {
|
||||
Map<String, String> filters = MCMAPI.setup();
|
||||
filters.put("username__iexact", playerName);
|
||||
ModelResponse response = new ModelResponse(CoreWeb.HTTP(MCMAPI.getModelUrl("application"), CoreWeb.HttpMethod.GET,
|
||||
ModelResponse response = new ModelResponse(CoreWeb.HTTP(MCMAPI.getModelUrl("player"), CoreWeb.HttpMethod.GET,
|
||||
filters));
|
||||
JsonArray players = response.getResults();
|
||||
if (players.size() == 1) {
|
||||
|
|
Loading…
Reference in New Issue