mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-22 04:37:02 +00:00
Update dChatServer/PlayerContainer.cpp
Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com>
This commit is contained in:
parent
2ce2f4e363
commit
846ba894a4
@ -22,11 +22,10 @@ const json PlayerData::to_json() const {
|
|||||||
data["gm_level"] = this->gmLevel;
|
data["gm_level"] = this->gmLevel;
|
||||||
data["muted"] = this->GetIsMuted();
|
data["muted"] = this->GetIsMuted();
|
||||||
|
|
||||||
json zoneID;
|
json& zoneID = data["zone_id"];
|
||||||
zoneID["map_id"] = std::to_string(this->zoneID.GetMapID());
|
zoneID["map_id"] = std::to_string(this->zoneID.GetMapID());
|
||||||
zoneID["instance_id"] = std::to_string(this->zoneID.GetInstanceID());
|
zoneID["instance_id"] = std::to_string(this->zoneID.GetInstanceID());
|
||||||
zoneID["clone_id"] = std::to_string(this->zoneID.GetCloneID());
|
zoneID["clone_id"] = std::to_string(this->zoneID.GetCloneID());
|
||||||
data["zone_id"] = zoneID;
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user