mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-01-22 08:30:06 +00:00
Respect name check flag in getPlayerName
This commit is contained in:
parent
6ff51685a8
commit
b483bf7190
@ -620,6 +620,10 @@ std::string PlayerManager::getPlayerName(Player *plr, bool id) {
|
|||||||
if (plr == nullptr)
|
if (plr == nullptr)
|
||||||
return "NOT IN GAME";
|
return "NOT IN GAME";
|
||||||
|
|
||||||
|
if (plr->PCStyle.iNameCheck == 0) {
|
||||||
|
return "Player " + std::to_string(plr->iID);
|
||||||
|
}
|
||||||
|
|
||||||
std::string ret = "";
|
std::string ret = "";
|
||||||
if (id && plr->accountLevel <= 30)
|
if (id && plr->accountLevel <= 30)
|
||||||
ret += "(GM) ";
|
ret += "(GM) ";
|
||||||
|
Loading…
Reference in New Issue
Block a user