From 14d4562be812a9180087a8309073315315695985 Mon Sep 17 00:00:00 2001 From: Etzelia Date: Sat, 22 Dec 2018 20:55:39 +0100 Subject: [PATCH] Run denied commands on login as well if a player's application is denied. --- .../etztech/minecraftmanager/listeners/SessionListener.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/xyz/etztech/minecraftmanager/listeners/SessionListener.java b/src/main/java/xyz/etztech/minecraftmanager/listeners/SessionListener.java index f840450..d61d44d 100644 --- a/src/main/java/xyz/etztech/minecraftmanager/listeners/SessionListener.java +++ b/src/main/java/xyz/etztech/minecraftmanager/listeners/SessionListener.java @@ -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()); } } }