Fix whitelist command

This commit is contained in:
Cooldude2606 committed 2024-10-31 16:07:58 +00:00
1 parent f6a40baa55
commit 19b5c4d857
1 file changed
+1 -1
+1 -1
View File
@@ -966,7 +966,7 @@ rcon.print(game.table_to_json(players))`.replace(/\r?\n/g, " ");
}
let { name, whitelisted } = request;
let command = whitelisted ? `/whitelist add ${name}` : `/whiteliste remove ${name}`;
let command = whitelisted ? `/whitelist add ${name}` : `/whitelist remove ${name}`;
await this.sendRcon(command);
}