From 100c12c4a985d14e01fb7309b1672b5bdee9418d Mon Sep 17 00:00:00 2001 From: Skillet Date: Mon, 6 Nov 2023 21:39:13 -0500 Subject: [PATCH] Update discord-cheater.js --- squad-server/plugins/discord-cheater.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/squad-server/plugins/discord-cheater.js b/squad-server/plugins/discord-cheater.js index 7759902..dd4a6f2 100644 --- a/squad-server/plugins/discord-cheater.js +++ b/squad-server/plugins/discord-cheater.js @@ -80,7 +80,9 @@ export default class DiscordCheater extends DiscordBasePlugin { } }); if (info.probcheat ? info.probcheat === 'high' : true) { - await this.server.rcon.kick(info.player.steamID, 'R14 | Cheating - highly suspected'); + if (info.player){ + await this.server.rcon.kick(info.player.steamID, 'R14 | Cheating - highly suspected'); + } } } }