From d71335ed5fc5f8cd8636281ac22d1398ff0245fb Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 27 Jun 2022 16:40:12 -0500 Subject: [PATCH] Revert back to main colour in timestamp toggle cmd --- 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 856c9722..72282708 100644 --- a/scripts/server/account.js +++ b/scripts/server/account.js @@ -392,12 +392,12 @@ function toggleChatBoxTimeStampsCommand(command, params, client) { if (hasBitFlag(getPlayerData(client).accountData.settings, flagValue)) { getPlayerData(client).accountData.settings = removeBitFlag(getPlayerData(client).accountData.settings, flagValue); - messagePlayerSuccess(client, getLocaleString(client, "ChatBoxTimestampsToggle", `{softRed}${toUpperCase(getLocaleString(client, "Off"))}`)); + messagePlayerSuccess(client, getLocaleString(client, "ChatBoxTimestampsToggle", `{softRed}${toUpperCase(getLocaleString(client, "Off"))}{MAINCOLOUR}`)); sendPlayerChatBoxTimeStampsState(client, false); } else { getPlayerData(client).accountData.settings = addBitFlag(getPlayerData(client).accountData.settings, flagValue); - messagePlayerSuccess(client, getLocaleString(client, "ChatBoxTimestampsToggle", `{softGreen}${toUpperCase(getLocaleString(client, "On"))}`)); - sendPlayerChatBoxTimeStampsState(client, false); + messagePlayerSuccess(client, getLocaleString(client, "ChatBoxTimestampsToggle", `{softGreen}${toUpperCase(getLocaleString(client, "On"))}{MAINCOLOUR}`)); + sendPlayerChatBoxTimeStampsState(client, true); } return true; }