alarm rules

This commit is contained in:
SowinskiBraeden committed 2023-04-04 12:25:23 -07:00
1 parent 9350647efc
commit 79e837cde0
4 files changed
+66 -45

No files matched your search

+2 -2
View File
@@ -32,8 +32,8 @@ module.exports = {
let bans = res.data.gameserver.settings.general.bans;
if (ban) bans += `${gamertag}\r\n`;
if (!ban) bans = bans.replace(`${gamertag}\r\n`, '');
if (ban != true && ban != false) {
else if (!ban) bans = bans.replace(`${gamertag}\r\n`, '');
else {
client.error("Incorrect Ban Option: HandlePlayerBan")
throw "Incorrect Ban Option: HandlePlayerBan"
}