Use locale string

This commit is contained in:
Vortrex
2022-04-23 15:12:52 -05:00
parent 6999661bba
commit b355c2093f

View File

@@ -619,10 +619,14 @@ function loginSuccess(client) {
}
getPlayerData(client).accountData.ipAddress = getPlayerIP(client);
sendPlayerChatScrollLines(client, getPlayerData(client).accountData.chatScrollLines);
messagePlayerNormal(null, `👋 ${getPlayerName(client)} has joined the server`, getColourByName("softYellow"));
messageDiscordChatChannel(`👋 ${getPlayerName(client)} has joined the server`);
let clients = getClients();
for(let i in clients) {
messagePlayerNormal(clients[i], getLocaleString(clients[i], "PlayerJoined", `{ALTCOLOUR}${getPlayerName(client)}{MAINCOLOUR}`), getColourByName("softYellow"));
}
}
// ===========================================================================
@@ -1089,7 +1093,7 @@ function isValidEmailAddress(emailAddress) {
// ===========================================================================
function savePlayersToDatabase() {
function saveAllPlayersToDatabase() {
logToConsole(LOG_DEBUG, "[VRR.Account]: Saving all clients to database ...");
getClients().forEach(function(client) {
savePlayerToDatabase(client);