Fix SCBL Info plugin's threshold option

This commit is contained in:
Thomas Smyth 2021-01-15 09:55:10 +00:00
parent 6f2c9507e3
commit a5f35d5915

View File

@ -92,11 +92,14 @@ export default class SCBLInfo extends DiscordBasePlugin {
2, 2,
`Player ${info.name} (Steam ID: ${info.steamID}) is not listed in the Squad Community Ban List.` `Player ${info.name} (Steam ID: ${info.steamID}) is not listed in the Squad Community Ban List.`
); );
if (data.steamUser.reputationPoints < this.options.threshold)
if (data.steamUser.reputationPoints < this.options.threshold) {
this.verbose( this.verbose(
2, 2,
`Player ${info.name} (Steam ID: ${info.steamID}) has a reputation below the threshold.` `Player ${info.name} (Steam ID: ${info.steamID}) has a reputation below the threshold.`
); );
return;
}
await this.sendDiscordMessage({ await this.sendDiscordMessage({
embed: { embed: {