Run denied commands on login as well if a player's application is denied.

master
Etzelia 2018-12-22 20:55:39 +01:00
parent 81c41333cb
commit 14d4562be8
1 changed files with 2 additions and 3 deletions

View File

@ -61,9 +61,8 @@ public class SessionListener implements Listener {
JsonArray query = response.getResults(); JsonArray query = response.getResults();
if (query.size() == 1) { if (query.size() == 1) {
JsonElement element = query.get(0).getAsJsonObject().get("accepted"); JsonElement element = query.get(0).getAsJsonObject().get("accepted");
boolean accepted = !element.isJsonNull() && element.getAsBoolean(); if (!element.isJsonNull()) {
if (accepted) { MinecraftManagerThread.action(name, element.getAsBoolean());
MinecraftManagerThread.action(name, true);
} }
} }
} }