From b9dc8090734acfb75110d58344e499e83e5663ce Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 5 May 2022 11:28:44 -0500 Subject: [PATCH] Fix disconnect util --- scripts/server/account.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/server/account.js b/scripts/server/account.js index 1db16a6b..221a30b0 100644 --- a/scripts/server/account.js +++ b/scripts/server/account.js @@ -591,7 +591,7 @@ function loginSuccess(client) { if(!hasBitFlag(getPlayerData(client).accountData.flags.moderation, getModerationFlagValue("IsTester"))) { setTimeout(function() { getPlayerData(client).customDisconnectReason = "Kicked - Not a tester"; - disconnectPlayer(); + disconnectPlayer(client); }, 3500); if(doesServerHaveGUIEnabled() && doesPlayerHaveGUIEnabled(client)) { @@ -804,7 +804,7 @@ function createAccount(name, password, email = "") { function checkLogin(client, password) { getPlayerData(client).loginAttemptsRemaining = getPlayerData(client).loginAttemptsRemaining-1; if(getPlayerData(client).loginAttemptsRemaining <= 0) { - disconnectPlayer(); + disconnectPlayer(client); } if(isPlayerLoggedIn(client)) { @@ -983,7 +983,7 @@ function checkRegistration(client, password, confirmPassword = "", emailAddress if(doesServerHaveTesterOnlyEnabled() && !isPlayerATester(client)) { setTimeout(function() { - disconnectPlayer(); + disconnectPlayer(client); }, 5000); if(doesServerHaveGUIEnabled() && doesPlayerHaveGUIEnabled(client)) {