Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieaer committed Feb 24, 2024
2 parents a7c7800 + f24be8f commit 0c94620
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/kotlin/essentials/Event.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"author": "Kieaer",
"main": "essentials.Main",
"description": "More commands and features.",
"version": "v18.2"
"version": "v19"
}

0 comments on commit 0c94620

Please # to comment.