mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
[Command] Add #show zone_variables (#4812)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#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.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user