diff --git a/src/Components/Modules/Chat.cpp b/src/Components/Modules/Chat.cpp index 2e0c476f..883e3754 100644 --- a/src/Components/Modules/Chat.cpp +++ b/src/Components/Modules/Chat.cpp @@ -351,7 +351,7 @@ namespace Components } catch (const std::exception& ex) { - Logger::PrintError(Game::CON_CHANNEL_ERROR, "Json Parse Error: {}\n", ex.what()); + Logger::PrintError(Game::CON_CHANNEL_ERROR, "JSON Parse Error: {}\n", ex.what()); return; } @@ -386,7 +386,7 @@ namespace Components { if (!Dedicated::IsRunning()) { - Logger::Print(Game::CON_CHANNEL_SERVER, "Server is not running.\n"); + Logger::Print("Server is not running.\n"); return; } @@ -409,7 +409,7 @@ namespace Components { if (!Dedicated::IsRunning()) { - Logger::Print(Game::CON_CHANNEL_SERVER, "Server is not running.\n"); + Logger::Print("Server is not running.\n"); return; } @@ -450,7 +450,7 @@ namespace Components { if (!Dedicated::IsRunning()) { - Logger::Print(Game::CON_CHANNEL_SERVER, "Server is not running.\n"); + Logger::Print("Server is not running.\n"); return; } @@ -462,12 +462,12 @@ namespace Components if (!name.empty()) { Game::SV_GameSendServerCommand(-1, Game::SV_CMD_CAN_IGNORE, Utils::String::Format("{:c} \"{}: {}\"", 0x68, name, message)); - Logger::Print(Game::CON_CHANNEL_SERVER, "{}: {}\n", name, message); + Logger::Print("{}: {}\n", name, message); } else { Game::SV_GameSendServerCommand(-1, Game::SV_CMD_CAN_IGNORE, Utils::String::Format("{:c} \"Console: {}\"", 0x68, message)); - Logger::Print(Game::CON_CHANNEL_SERVER, "Console: {}\n", message); + Logger::Print("Console: {}\n", message); } }); @@ -475,7 +475,7 @@ namespace Components { if (!Dedicated::IsRunning()) { - Logger::Print(Game::CON_CHANNEL_SERVER, "Server is not running.\n"); + Logger::Print("Server is not running.\n"); return; } @@ -490,12 +490,12 @@ namespace Components if (!name.empty()) { Game::SV_GameSendServerCommand(clientNum, Game::SV_CMD_CAN_IGNORE, Utils::String::Format("{:c} \"{}: {}\"", 0x68, name.data(), message)); - Logger::Print(Game::CON_CHANNEL_SERVER, "{} -> {}: {}\n", name, clientNum, message); + Logger::Print("{} -> {}: {}\n", name, clientNum, message); } else { Game::SV_GameSendServerCommand(clientNum, Game::SV_CMD_CAN_IGNORE, Utils::String::Format("{:c} \"Console: {}\"", 0x68, message)); - Logger::Print(Game::CON_CHANNEL_SERVER, "Console -> {}: {}\n", clientNum, message); + Logger::Print("Console -> {}: {}\n", clientNum, message); } }); @@ -503,7 +503,7 @@ namespace Components { if (!Dedicated::IsRunning()) { - Logger::Print(Game::CON_CHANNEL_SERVER, "Server is not running.\n"); + Logger::Print("Server is not running.\n"); return; } @@ -511,14 +511,14 @@ namespace Components const auto message = params->join(1); Game::SV_GameSendServerCommand(-1, Game::SV_CMD_CAN_IGNORE, Utils::String::Format("{:c} \"{}\"", 0x68, message)); - Logger::Print(Game::CON_CHANNEL_SERVER, "Raw: {}\n", message); + Logger::Print("Raw: {}\n", message); }); Command::AddSV("tellraw", [](Command::Params* params) { if (!Dedicated::IsRunning()) { - Logger::Print(Game::CON_CHANNEL_SERVER, "Server is not running.\n"); + Logger::Print("Server is not running.\n"); return; } @@ -529,7 +529,7 @@ namespace Components const auto message = params->join(2); Game::SV_GameSendServerCommand(clientNum, Game::SV_CMD_CAN_IGNORE, Utils::String::Format("{:c} \"{}\"", 0x68, message)); - Logger::Print(Game::CON_CHANNEL_SERVER, "Raw -> {}: {}\n", clientNum, message); + Logger::Print("Raw -> {}: {}\n", clientNum, message); }); sv_sayName = Dvar::Register("sv_sayName", "^7Console", Game::DVAR_NONE, "The alias of the server when broadcasting a chat message"); diff --git a/src/Components/Modules/Dedicated.cpp b/src/Components/Modules/Dedicated.cpp index f0a15590..100a1ab2 100644 --- a/src/Components/Modules/Dedicated.cpp +++ b/src/Components/Modules/Dedicated.cpp @@ -172,7 +172,7 @@ namespace Components Network::Address master(Utils::String::VA("%s:%u", masterServerName, masterPort)); - Logger::Print(Game::CON_CHANNEL_SERVER, "Sending heartbeat to master: {}:{}\n", masterServerName, masterPort); + Logger::Print("Sending heartbeat to master: {}:{}\n", masterServerName, masterPort); Network::SendCommand(master, "heartbeat", "IW4"); } diff --git a/src/Components/Modules/Stats.cpp b/src/Components/Modules/Stats.cpp index 1f424688..b2e8db16 100644 --- a/src/Components/Modules/Stats.cpp +++ b/src/Components/Modules/Stats.cpp @@ -175,7 +175,7 @@ namespace Components { if (params->size() < 2) { - Logger::PrintError(Game::CON_CHANNEL_SERVER, "statget usage: statget \n"); + Logger::Print("statget usage: statget \n"); return; }