From cac9c34a03a377543cd0ed10100031bd5b63a038 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 3 Mar 2022 19:17:20 -0600 Subject: [PATCH] Change new char fail from alert to error --- scripts/server/subaccount.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/server/subaccount.js b/scripts/server/subaccount.js index 9428626d..39565d2a 100644 --- a/scripts/server/subaccount.js +++ b/scripts/server/subaccount.js @@ -231,7 +231,7 @@ function showCharacterSelectToClient(client) { } } - if(getServerConfig().useGUI && doesPlayerHaveGUIEnabled(client)) { + if(doesServerHaveGUIEnabled() && doesPlayerHaveGUIEnabled(client)) { getPlayerData(client).currentSubAccount = 0; logToConsole(LOG_DEBUG, `[VRR.SubAccount] Setting ${getPlayerDisplayForConsole(client)}'s character to ID ${getPlayerData(client).currentSubAccount}`); let tempSubAccount = getPlayerData(client).subAccounts[0]; @@ -290,10 +290,10 @@ function checkNewCharacter(client, firstName, lastName) { let subAccountData = createSubAccount(getPlayerData(client).accountData.databaseId, firstName, lastName); if(!subAccountData) { - if(getServerConfig().useGUI && doesPlayerHaveGUIEnabled(client)) { + if(doesServerHaveGUIEnabled() && doesPlayerHaveGUIEnabled(client)) { showPlayerNewCharacterFailedGUI(client, "Your character could not be created!"); } else { - messagePlayerAlert(client, "Your character could not be created!"); + messagePlayerError(client, "Your character could not be created!"); } messagePlayerAlert(client, `${getServerName()} staff have been notified of the problem and will fix it soon.`); return false;