diff --git a/src/main/kotlin/essentials/Event.kt b/src/main/kotlin/essentials/Event.kt index 1daaab25..2fb6bf73 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)) 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" }