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();
|
||||
if (query.size() == 1) {
|
||||
JsonElement element = query.get(0).getAsJsonObject().get("accepted");
|
||||
boolean accepted = !element.isJsonNull() && element.getAsBoolean();
|
||||
if (accepted) {
|
||||
MinecraftManagerThread.action(name, true);
|
||||
if (!element.isJsonNull()) {
|
||||
MinecraftManagerThread.action(name, element.getAsBoolean());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue