[API] Add lock_status method to world API (#4028)

This commit is contained in:
Chris Miles authored and GitHub committed 2024-01-28 20:18:32 -06:00
1 parent ff2e56abc7
commit 97c3205657
1 file changed
+4
+4
View File
@@ -27,6 +27,7 @@
#include "../common/database_schema.h"
#include "../common/zone_store.h"
#include "worlddb.h"
#include "world_config.h"
extern ZSList zoneserver_list;
extern ClientList client_list;
@@ -274,4 +275,7 @@ void EQEmuApiWorldDataService::get(Json::Value &r, const std::vector<std::string
if (m == "reload") {
reload(r, args);
}
if (m == "lock_status") {
r["locked"] = WorldConfig::get()->Locked;
}
}