Skip to content

Commit 8f807c1

Browse files
committed
remove "invalid server" error when adding server to group
1 parent 3ab0640 commit 8f807c1

File tree

1 file changed

+0
-2
lines changed
  • common/src/main/kotlin/net/azisaba/spicyAzisaBan/commands

1 file changed

+0
-2
lines changed

common/src/main/kotlin/net/azisaba/spicyAzisaBan/commands/SABCommand.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ object SABCommand: Command() {
119119
if (args[2] == "add" || args[2] == "remove") {
120120
if (args.size <= 3) {
121121
return@then actor.sendGroupHelp()
122-
} else if (!SpicyAzisaBan.instance.getServers().map { it.value.name }.any { it == args[3] }) {
123-
return@then actor.send(SABMessages.Commands.General.invalidServer.replaceVariables().translate())
124122
}
125123
}
126124
when (args[2]) {

0 commit comments

Comments
 (0)