mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 17:13:54 -06:00
update mapvote
This commit is contained in:
parent
f8ca66edf2
commit
025e347ba5
@ -86,7 +86,7 @@ export default class MapVote extends DiscordBasePlugin {
|
|||||||
description: "Select Whitelist mode or Blacklist mode",
|
description: "Select Whitelist mode or Blacklist mode",
|
||||||
default: "blacklist"
|
default: "blacklist"
|
||||||
},
|
},
|
||||||
modWhiteList: {
|
modWhitelist: {
|
||||||
required: false,
|
required: false,
|
||||||
description: "select mods (short ID) to whitelist for voting",
|
description: "select mods (short ID) to whitelist for voting",
|
||||||
default: ["Vanilla"]
|
default: ["Vanilla"]
|
||||||
@ -348,7 +348,7 @@ export default class MapVote extends DiscordBasePlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getModLayers(){
|
getModLayers(){
|
||||||
return Layers.layers.filter((l) => this.options.modWhiteList.find((e) => e === l.modName));
|
return Layers.layers.filter((l) => this.options.modWhitelist.find((e) => e === l.modName));
|
||||||
}
|
}
|
||||||
|
|
||||||
setSeedingMode(isNewGameEvent = false) {
|
setSeedingMode(isNewGameEvent = false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user