update/better-ban-handler
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -37,8 +37,8 @@ module.exports = {
|
||||
).then(res => res);
|
||||
|
||||
let bans = res.data.gameserver.settings.general.bans;
|
||||
if (ban) bans += `${gamertag}\r\n`;
|
||||
else if (!ban) bans = bans.replace(`${gamertag}\r\n`, '');
|
||||
if (ban) bans += `\r\n${gamertag}`;
|
||||
else if (!ban) bans = bans.replace(gamertag, '');
|
||||
else {
|
||||
client.error("Incorrect Ban Option: HandlePlayerBan")
|
||||
throw "Incorrect Ban Option: HandlePlayerBan"
|
||||
|
||||
Reference in new issue
Block a user