From b483bf7190afc3d32c742601c24e5e4a7e7dec1a Mon Sep 17 00:00:00 2001 From: Gent Semaj Date: Thu, 2 Jan 2025 17:44:37 -0500 Subject: [PATCH] Respect name check flag in getPlayerName --- src/PlayerManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PlayerManager.cpp b/src/PlayerManager.cpp index efcaeec..fb8cadb 100644 --- a/src/PlayerManager.cpp +++ b/src/PlayerManager.cpp @@ -620,6 +620,10 @@ std::string PlayerManager::getPlayerName(Player *plr, bool id) { if (plr == nullptr) return "NOT IN GAME"; + if (plr->PCStyle.iNameCheck == 0) { + return "Player " + std::to_string(plr->iID); + } + std::string ret = ""; if (id && plr->accountLevel <= 30) ret += "(GM) ";