mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 16:24:25 -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,
|
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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user