mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 11:54:23 -05:00
Fix SCBL Info plugin's threshold option
This commit is contained in:
parent
6f2c9507e3
commit
a5f35d5915
@ -92,11 +92,14 @@ export default class SCBLInfo extends DiscordBasePlugin {
|
||||
2,
|
||||
`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(
|
||||
2,
|
||||
`Player ${info.name} (Steam ID: ${info.steamID}) has a reputation below the threshold.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
await this.sendDiscordMessage({
|
||||
embed: {
|
||||
|
Loading…
Reference in New Issue
Block a user