Skip to content

Commit

Permalink
remove "invalid server" error when adding server to group
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Nov 10, 2024
1 parent 3ab0640 commit 8f807c1
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ object SABCommand: Command() {
if (args[2] == "add" || args[2] == "remove") {
if (args.size <= 3) {
return@then actor.sendGroupHelp()
} else if (!SpicyAzisaBan.instance.getServers().map { it.value.name }.any { it == args[3] }) {
return@then actor.send(SABMessages.Commands.General.invalidServer.replaceVariables().translate())
}
}
when (args[2]) {
Expand Down

0 comments on commit 8f807c1

Please sign in to comment.