From 8f807c1fed571161ee256ca6a530db605e1bf086 Mon Sep 17 00:00:00 2001 From: acrylic-style Date: Sun, 10 Nov 2024 17:25:43 +0900 Subject: [PATCH] remove "invalid server" error when adding server to group --- .../kotlin/net/azisaba/spicyAzisaBan/commands/SABCommand.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/src/main/kotlin/net/azisaba/spicyAzisaBan/commands/SABCommand.kt b/common/src/main/kotlin/net/azisaba/spicyAzisaBan/commands/SABCommand.kt index e0957bb..1b12a5b 100644 --- a/common/src/main/kotlin/net/azisaba/spicyAzisaBan/commands/SABCommand.kt +++ b/common/src/main/kotlin/net/azisaba/spicyAzisaBan/commands/SABCommand.kt @@ -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]) {