mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-04 22:40:05 +00:00
Indicate high account level in logged player name
This commit is contained in:
parent
f74c40cf69
commit
792a317b48
@ -907,7 +907,11 @@ std::string PlayerManager::getPlayerName(Player *plr, bool id) {
|
||||
if (plr == nullptr)
|
||||
return "NOT IN GAME";
|
||||
|
||||
std::string ret = U16toU8(plr->PCStyle.szFirstName) + " " + U16toU8(plr->PCStyle.szLastName);
|
||||
std::string ret = "";
|
||||
if (id && plr->accountLevel <= 10)
|
||||
ret += "(GM) ";
|
||||
|
||||
ret += U16toU8(plr->PCStyle.szFirstName) + " " + U16toU8(plr->PCStyle.szLastName);
|
||||
|
||||
if (id)
|
||||
ret += " [" + std::to_string(plr->iID) + "]";
|
||||
|
Loading…
Reference in New Issue
Block a user