mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 19:33:51 -06:00
changed naming scheme for mode blacklist to make it more human readable
This commit is contained in:
parent
7d0ac0db40
commit
aaa4332826
@ -6,6 +6,11 @@
|
|||||||
"Invasion"
|
"Invasion"
|
||||||
],
|
],
|
||||||
|
|
||||||
|
"mode_repeat_blacklist":
|
||||||
|
[
|
||||||
|
"Invasion"
|
||||||
|
],
|
||||||
|
|
||||||
"rules":
|
"rules":
|
||||||
{
|
{
|
||||||
"Gorodok":
|
"Gorodok":
|
||||||
|
@ -250,7 +250,7 @@ export default class MapVote extends BasePlugin
|
|||||||
if (mode === "Any")
|
if (mode === "Any")
|
||||||
modes = this.voteRules.modes;
|
modes = this.voteRules.modes;
|
||||||
|
|
||||||
if (this.voteRules.repeatBlacklist.includes(currentMode))
|
if (this.voteRules.mode_repeat_blacklist.includes(currentMode))
|
||||||
{
|
{
|
||||||
modes = modes.filter(mode => !mode.includes(currentMode));
|
modes = modes.filter(mode => !mode.includes(currentMode));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user