From e339b0764769e9f19daff715983bcddcc5588371 Mon Sep 17 00:00:00 2001 From: Davide Fantino <80767709+fantinodavide@users.noreply.github.com> Date: Sun, 20 Nov 2022 22:46:49 +0100 Subject: [PATCH] control for allowedSameMapEntries --- mapvote.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mapvote.js b/mapvote.js index 5be6391..e2b4a31 100644 --- a/mapvote.js +++ b/mapvote.js @@ -152,6 +152,8 @@ export default class MapVote extends DiscordBasePlugin { this.options.timeFrames.forEach((e, key, arr) => { arr[ key ].id = key + 1 }); + if (this.options.allowedSameMapEntries < 1) this.options.allowedSameMapEntries = 1 + this.voteRules = {}; //data object holding vote configs this.nominations = []; //layer strings for the current vote choices this.trackedVotes = {}; //player votes, keyed by steam id