mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-29 01:31:30 +00:00
19 lines
353 B
C++
Executable File
19 lines
353 B
C++
Executable File
#include "zone/client.h"
|
|
|
|
void command_repop(Client *c, const Seperator *sep)
|
|
{
|
|
const bool is_forced = sep->argnum > 0 ? !strcasecmp(sep->arg[1], "force") : false;
|
|
|
|
c->Message(
|
|
Chat::White,
|
|
fmt::format(
|
|
"Zone depopped, {}repopping now.",
|
|
is_forced ? "forcefully " : ""
|
|
).c_str()
|
|
);
|
|
|
|
entity_list.ClearAreas();
|
|
zone->Repop(is_forced);
|
|
}
|
|
|