From 915ba124717119b009fa67c484d6365b0e30ea44 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 21 Jan 2022 20:31:01 -0600 Subject: [PATCH] Fix login/register locale string missing info --- scripts/server/account.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/server/account.js b/scripts/server/account.js index dd1f2f25..11e6de8d 100644 --- a/scripts/server/account.js +++ b/scripts/server/account.js @@ -616,6 +616,7 @@ function saveAccountToDatabase(accountData) { ["acct_code_verifyemail", accountData.emailVerificationCode], ["acct_streaming_radio_volume", accountData.streamingRadioVolume], ["acct_ip", accountData.ipAddress], + ["acct_locale", accountData.locale], ]; let data2 = [ @@ -1121,7 +1122,7 @@ function initClient(client) { showPlayerLoginGUI(client); } else { logToConsole(LOG_DEBUG, `[VRR.Account] ${getPlayerDisplayForConsole(client)} is being shown the login message (GUI disabled).`); - messagePlayerNormal(client, getLocaleString(client, "WelcomeBack", getServerName(), getPlayerName(client)), getColourByName("softGreen")); + messagePlayerNormal(client, getLocaleString(client, "WelcomeBack", getServerName(), getPlayerName(client), "/login"),getColourByName("softGreen")); } playRadioStreamForPlayer(client, getServerIntroMusicURL(), true, getPlayerStreamingRadioVolume(client)); } @@ -1131,7 +1132,7 @@ function initClient(client) { showPlayerRegistrationGUI(client); } else { logToConsole(LOG_DEBUG, `[VRR.Account] ${getPlayerDisplayForConsole(client)} is being shown the register message (GUI disabled).`); - messagePlayerNormal(client, getLocaleString(client, "WelcomeNewPlayer", getServerName(), getPlayerName(client)), getColourByName("softGreen")); + messagePlayerNormal(client, getLocaleString(client, "WelcomeNewPlayer", getServerName(), getPlayerName(client), "/register"), getColourByName("softGreen")); } playRadioStreamForPlayer(client, getServerIntroMusicURL(), true, getPlayerStreamingRadioVolume(client)); }