Respect name check flag in getPlayerName

This commit is contained in:
Gent Semaj 2025-01-02 17:44:37 -05:00
parent 6ff51685a8
commit b483bf7190
Signed by untrusted user: ycc
GPG Key ID: 2D76C57BF6BEADC4

View File

@ -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) ";