From 6f1e8d8ae3ad44c3346b10598fb01b015d015fa5 Mon Sep 17 00:00:00 2001 From: May2Beez Date: Sat, 2 Dec 2023 16:09:58 +0100 Subject: [PATCH] + Reading issue - Fixed --- gradle.properties | 2 +- .../java/com/jelly/farmhelperv2/feature/impl/BanInfoWS.java | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index 25dfb880..5f731c85 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,5 +4,5 @@ baseGroup=com.jelly.farmhelperv2 mcVersion=1.8.9 modid=farmhelperv2 modName=FarmHelper -version=2.0.17 +version=2.0.18 shouldRelease=true diff --git a/src/main/java/com/jelly/farmhelperv2/feature/impl/BanInfoWS.java b/src/main/java/com/jelly/farmhelperv2/feature/impl/BanInfoWS.java index e4de2392..2b66030c 100644 --- a/src/main/java/com/jelly/farmhelperv2/feature/impl/BanInfoWS.java +++ b/src/main/java/com/jelly/farmhelperv2/feature/impl/BanInfoWS.java @@ -27,7 +27,6 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; import org.apache.commons.compress.utils.IOUtils; -import org.apache.http.Header; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.config.RequestConfig; @@ -588,10 +587,9 @@ public void onMessage(String message) { case "playerGotBanned": { String username = jsonObject.get("username").getAsString(); String days = jsonObject.get("days").getAsString(); - String mod = jsonObject.get("mod").getAsString(); String reason = jsonObject.get("reason").getAsString(); - LogUtils.sendWarning("Player " + username + " got banned for " + days + " days while having " + mod + " in mods folder (reason: " + reason + ")"); - Notifications.INSTANCE.send("FarmHelper INFO", "Player " + username + " got banned for " + days + " days while having " + mod + " in mods folder"); + LogUtils.sendWarning("Detected ban screen in " + username + "'s client for " + days + " days (reason: " + reason + ")"); + Notifications.INSTANCE.send("FarmHelper INFO", "Detected ban screen in " + username + "'s client for " + days + " days"); break; } }