From aaa4332826221a08b03a1aff16127f2e801014fc Mon Sep 17 00:00:00 2001 From: maskedmonkyman Date: Sat, 23 Apr 2022 13:19:35 -0700 Subject: [PATCH] changed naming scheme for mode blacklist to make it more human readable --- example configs/simple example.json | 5 +++++ mapvote.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/example configs/simple example.json b/example configs/simple example.json index 4ed7f9a..8b40e4f 100644 --- a/example configs/simple example.json +++ b/example configs/simple example.json @@ -6,6 +6,11 @@ "Invasion" ], + "mode_repeat_blacklist": + [ + "Invasion" + ], + "rules": { "Gorodok": diff --git a/mapvote.js b/mapvote.js index 0da5452..127398f 100644 --- a/mapvote.js +++ b/mapvote.js @@ -250,7 +250,7 @@ export default class MapVote extends BasePlugin if (mode === "Any") 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)); }