From 36f950f2c383df0de770c3fee189285d8dc012b9 Mon Sep 17 00:00:00 2001 From: Carlos <28845529+mesacarlos@users.noreply.github.com> Date: Tue, 20 Aug 2019 22:35:46 +0200 Subject: [PATCH] Added bold, italic, underline and strikethrough console codes --- client/scripts/WebConsole.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/scripts/WebConsole.js b/client/scripts/WebConsole.js index 6cb6087..6ecb9bb 100644 --- a/client/scripts/WebConsole.js +++ b/client/scripts/WebConsole.js @@ -139,6 +139,12 @@ function writeToWebConsole(msg){ msg = msg.replace(/§d/g, ""); //&d msg = msg.replace(/§e/g, ""); //&e msg = msg.replace(/§f/g, ""); //&f + + msg = msg.replace(/§l/g, ""); //&l + msg = msg.replace(/§m/g, ""); //&m + msg = msg.replace(/§n/g, ""); //&n + msg = msg.replace(/§o/g, ""); //&o + msg = msg.replace(/§r/g, ""); //&r $("#consoleTextArea").append(msg + "
");