Run denied commands on login as well if a player's application is denied.
parent
81c41333cb
commit
14d4562be8
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue