diff --git a/src/main/java/net/silentclient/client/Client.java b/src/main/java/net/silentclient/client/Client.java index e7143d4..2cecb30 100644 --- a/src/main/java/net/silentclient/client/Client.java +++ b/src/main/java/net/silentclient/client/Client.java @@ -367,8 +367,8 @@ public class Client { public void shutdown() { logger.info("---------[ Silent Client Stopping ]--------------"); logger.info("STOPPING > silent-socket"); - Players.unregister(); skillIssue.sendDetections(); + Players.unregister(); logger.info("-------------------------------------------------"); } diff --git a/src/main/java/net/silentclient/client/skillissue/SkillIssue.java b/src/main/java/net/silentclient/client/skillissue/SkillIssue.java index f279779..736dc20 100644 --- a/src/main/java/net/silentclient/client/skillissue/SkillIssue.java +++ b/src/main/java/net/silentclient/client/skillissue/SkillIssue.java @@ -1,5 +1,6 @@ package net.silentclient.client.skillissue; +import net.minecraft.client.Minecraft; import net.silentclient.client.Client; import net.silentclient.client.event.EventManager; import net.silentclient.client.event.EventTarget; @@ -47,6 +48,10 @@ public class SkillIssue { JSONObject jsonObject = new JSONObject().put("detects", jsonArray); Requests.post("https://api.silentclient.net/anticheat/detect", jsonObject.toString()); + + if(Minecraft.getMinecraft().theWorld != null) { + Client.getInstance().updateUserInformation(); + } } public ArrayList getDetections() {