mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 20:43:52 -06:00
hotfix
This commit is contained in:
parent
0e7fd4a123
commit
2010dffbdf
@ -517,13 +517,14 @@ export default class MapVote extends BasePlugin {
|
||||
|
||||
if (playerCount < minPlayers && !force) {
|
||||
if (this.onConnectBound == false) {
|
||||
this.server.on("PLAYER_CONNECTED", () => { this.beginVoting })
|
||||
this.server.on("PLAYER_CONNECTED", this.beginVoting)
|
||||
this.onConnectBound = true;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (this.onConnectBound) {
|
||||
this.server.removeEventListener("PLAYER_CONNECTED", () => { this.beginVoting });
|
||||
|
||||
this.server.removeEventListener("PLAYER_CONNECTED", this.beginVoting);
|
||||
this.onConnectBound = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user