mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
17 lines
415 B
C++
17 lines
415 B
C++
#include "../../client.h"
|
|
#include "../../zone.h"
|
|
|
|
extern Zone* zone;
|
|
|
|
void ShowZoneVariables(Client *c, const Seperator *sep)
|
|
{
|
|
if (!zone->GetVariables().empty()) {
|
|
c->Message(Chat::White, "Zone Variables:");
|
|
for (auto &key: zone->GetVariables()) {
|
|
c->Message(Chat::White, fmt::format("{}: {}", key, zone->GetVariable(key)).c_str());
|
|
}
|
|
} else {
|
|
c->Message(Chat::White, "No zone variables set.");
|
|
}
|
|
}
|