mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 11:36:36 +00:00
[GM Commands] Split GM Commands Into Separate Files (#1766)
* Split GM commands into their own files * Code cleanup
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#include "../client.h"
|
||||
#include "../../common/file_util.h"
|
||||
|
||||
void command_reloadaa(Client *c, const Seperator *sep)
|
||||
{
|
||||
c->Message(Chat::White, "Reloading Alternate Advancement Data...");
|
||||
zone->LoadAlternateAdvancement();
|
||||
c->Message(Chat::White, "Alternate Advancement Data Reloaded");
|
||||
entity_list.SendAlternateAdvancementStats();
|
||||
}
|
||||
|
||||
inline bool file_exists(const std::string &name)
|
||||
{
|
||||
std::ifstream f(name.c_str());
|
||||
return f.good();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user