From adb8975c6a3c724b3ffcdbd56198ceb81c55558c Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Tue, 21 Feb 2023 19:44:01 -0600 Subject: [PATCH] Colour for client code execute --- scripts/server/developer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/server/developer.js b/scripts/server/developer.js index c6c2b7c6..1202bb0b 100644 --- a/scripts/server/developer.js +++ b/scripts/server/developer.js @@ -318,8 +318,8 @@ function executeServerCodeCommand(command, params, client) { } messagePlayerSuccess(client, "Server code executed!"); - messagePlayerNormal(client, `Code: ${params}`, COLOUR_YELLOW); - messagePlayerNormal(client, `Returns: ${returnValue} (${typeof returnValue})`, COLOUR_YELLOW); + messagePlayerNormal(client, `Code: ${params}`, getColourByName("yellow")); + messagePlayerNormal(client, `Returns: ${returnValue} (${typeof returnValue})`, getColourByName("yellow")); logToConsole(LOG_INFO, `Server code executed by ${getPlayerDisplayForConsole(client)}: ${params}`); return true; } @@ -349,7 +349,7 @@ function executeClientCodeCommand(command, params, client) { sendRunCodeToClient(targetClient, targetCode, client); messagePlayerSuccess(client, `Executing client code for ${getPlayerName(targetClient)}`); - messagePlayerNormal(client, `Code: ${targetCode}`); + messagePlayerNormal(client, `Code: ${targetCode}`, getColourByName("yellow")); return true; } @@ -483,7 +483,7 @@ function clientRunCodeSuccess(client, returnTo, returnVal) { //messagePlayerSuccess(returnClient, `Client code executed for ${getPlayerName(client)}!`); //messagePlayerNormal(returnClient, `Code: ${code}`, getColourByName("yellow")); - messagePlayerNormal(returnClient, `(${getPlayerName(client)}) Code returns: ${returnVal}`, getColourByName("white")); + messagePlayerNormal(returnClient, `(${getPlayerName(client)}) Code returns: ${returnVal}`, getColourByName("yellow")); } // ===========================================================================