Update discord-cheater.js

This commit is contained in:
Skillet 2023-11-06 21:39:13 -05:00 committed by GitHub
parent 9ae38a0e0c
commit 100c12c4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,9 @@ export default class DiscordCheater extends DiscordBasePlugin {
} }
}); });
if (info.probcheat ? info.probcheat === 'high' : true) { 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');
}
} }
} }
} }