diff --git a/build/classes/java/main/eradicator/BotEradicator$1.class b/build/classes/java/main/eradicator/BotEradicator$1.class index 108d4ca..18ce23b 100644 Binary files a/build/classes/java/main/eradicator/BotEradicator$1.class and b/build/classes/java/main/eradicator/BotEradicator$1.class differ diff --git a/build/classes/java/main/eradicator/BotEradicator.class b/build/classes/java/main/eradicator/BotEradicator.class index e37ab9b..645c7c1 100644 Binary files a/build/classes/java/main/eradicator/BotEradicator.class and b/build/classes/java/main/eradicator/BotEradicator.class differ diff --git a/build/libs/BotEradicator.jar b/build/libs/BotEradicator.jar index 8344f0f..158a95e 100644 Binary files a/build/libs/BotEradicator.jar and b/build/libs/BotEradicator.jar differ diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/BotEradicator$1.class.uniqueId2 b/build/tmp/compileJava/compileTransaction/stash-dir/BotEradicator$1.class.uniqueId2 index 75f4d5e..18ce23b 100644 Binary files a/build/tmp/compileJava/compileTransaction/stash-dir/BotEradicator$1.class.uniqueId2 and b/build/tmp/compileJava/compileTransaction/stash-dir/BotEradicator$1.class.uniqueId2 differ diff --git a/build/tmp/compileJava/compileTransaction/stash-dir/BotEradicator.class.uniqueId5 b/build/tmp/compileJava/compileTransaction/stash-dir/BotEradicator.class.uniqueId5 index a3ede20..48ce3d9 100644 Binary files a/build/tmp/compileJava/compileTransaction/stash-dir/BotEradicator.class.uniqueId5 and b/build/tmp/compileJava/compileTransaction/stash-dir/BotEradicator.class.uniqueId5 differ diff --git a/build/tmp/compileJava/previous-compilation-data.bin b/build/tmp/compileJava/previous-compilation-data.bin index 8dc4752..dd93fba 100644 Binary files a/build/tmp/compileJava/previous-compilation-data.bin and b/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/src/main/java/eradicator/BotEradicator.java b/src/main/java/eradicator/BotEradicator.java index 73ed735..c39eca4 100644 --- a/src/main/java/eradicator/BotEradicator.java +++ b/src/main/java/eradicator/BotEradicator.java @@ -133,14 +133,20 @@ private void loadFilters() { }); } + private int botsBlockedOld = botsBlockedTotal; + @Override public void update(){ - Core.settings.put("eradicator-bots-blocked", botsBlockedTotal); + if(botsBlockedTotal != botsBlockedOld) { + botsBlockedOld = botsBlockedTotal; + Core.settings.put("eradicator-bots-blocked", botsBlockedTotal); + } } @Override public void dispose(){ info("@ Bots were blocked on this session. @ Bots were blocked in total.", botsBlocked, botsBlockedTotal); + Core.settings.put("eradicator-bots-blocked", botsBlockedTotal); executor.shutdownNow().forEach(Runnable::run); } @@ -148,7 +154,7 @@ public void dispose(){ public void registerServerCommands(CommandHandler handler){ handler.register("botstatus", "View the status of the plugin, how many bots blocked, etc", (args)->{ info("Bots blocked on this session: @", botsBlocked); - info("Bots blocked always: @", botsBlockedTotal); + info("Bots blocked of all time: @", botsBlockedTotal); for(var s : botsBlockedPerAddress.entries()) info("Bots blocked for @: @", s.key, s.value); info("Plugin by TheRadioactiveBanana#0545 (@theradioactivebanana) On discord. "); });