Update mapvote.js

This commit is contained in:
Skyler Cleland 2023-06-26 22:10:38 -04:00 committed by GitHub
parent a1e4badf4b
commit 34718e35c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,7 +408,7 @@ export default class MapVote extends DiscordBasePlugin {
const maxSeedingModePlayerCount = Math.max(this.options.nextLayerSeedingModePlayerCount, this.options.instantSeedingModePlayerCount); const maxSeedingModePlayerCount = Math.max(this.options.nextLayerSeedingModePlayerCount, this.options.instantSeedingModePlayerCount);
if (this.server.players.length >= 1 && this.server.players.length < maxSeedingModePlayerCount) { if (this.server.players.length >= 1 && this.server.players.length < maxSeedingModePlayerCount) {
if (+(new Date()) - +this.server.layerHistory[0].time > 30 * 1000) { if (+(new Date()) - +this.server.layerHistory[0].time > 30 * 1000) {
const filterMaps = this.layerfilterWlist(this.layerfilterCorrectLayers(Layers.layers)); const filterMaps = this.layerfilterCorrectLayers(Layers.layers);
const seedingMaps = filterMaps.filter(l => l.gamemode.toLowerCase() === this.options.seedingGameMode); const seedingMaps = filterMaps.filter(l => l.gamemode.toLowerCase() === this.options.seedingGameMode);
this.verbose(1, seedingMaps); this.verbose(1, seedingMaps);