Model Fix

To retrieve a UUID, query the player model instead of the application model.
master
Etzelia 2018-10-11 19:25:16 +02:00
parent 2533fe7a7e
commit 7f5a45c93c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {