On the condition the value of switchEnabledMinutes is being used but doubleSwitchEnabledMinutes is used on the warning which could lead to misunderstanding.
|
if (this.getSecondsFromJoin(steamID) / 60 > this.options.switchEnabledMinutes && this.getSecondsFromMatchStart() / 60 > this.options.switchEnabledMinutes) { |
|
this.warn(steamID, `A switch can be requested only in the first ${this.options.doubleSwitchEnabledMinutes} mintues from match start or connection to the server`); |
On the condition the value of
switchEnabledMinutesis being used butdoubleSwitchEnabledMinutesis used on the warning which could lead to misunderstanding.squadjs-switch-plugin/switch.js
Lines 266 to 267 in 15e555a