From 411e117c372b9e5e3fc41eb8f56dbb88a73b8e2e Mon Sep 17 00:00:00 2001 From: Gureumi Date: Fri, 23 Feb 2024 12:27:35 +0900 Subject: [PATCH 1/2] Fix crash --- src/main/kotlin/essentials/Event.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/essentials/Event.kt b/src/main/kotlin/essentials/Event.kt index 737a9822..9d0ae723 100644 --- a/src/main/kotlin/essentials/Event.kt +++ b/src/main/kotlin/essentials/Event.kt @@ -690,6 +690,7 @@ object Event { json.forEachIndexed { index, jsonValue -> if (jsonValue.asObject().get("id").asString() == it.uuid) { json.remove(index) + return@forEachIndexed } } Fi(Config.banList).writeString(json.toString(Stringify.HJSON)) @@ -709,6 +710,7 @@ object Event { json.forEachIndexed { index, jsonValue -> if (jsonValue.asObject().get("ip").asArray().contains(JsonValue.valueOf(it.ip))) { json.remove(index) + return@forEachIndexed } } Fi(Config.banList).writeString(json.toString(Stringify.HJSON)) From f24be8f82bf62134c46e9ab10c5f4a77278f8f38 Mon Sep 17 00:00:00 2001 From: Gureumi Date: Fri, 23 Feb 2024 12:50:49 +0900 Subject: [PATCH 2/2] Essentials 19 --- src/main/resources/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/plugin.json b/src/main/resources/plugin.json index f521afa3..67dba4be 100644 --- a/src/main/resources/plugin.json +++ b/src/main/resources/plugin.json @@ -3,5 +3,5 @@ "author": "Kieaer", "main": "essentials.Main", "description": "More commands and features.", - "version": "v18.2" + "version": "v19" }