mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Quests] Hot Reload Changes (#4302)
* [Quests] Hot Reload Changes * snake_case
This commit is contained in:
@@ -918,6 +918,8 @@ void ConsoleReloadWorld(
|
||||
safe_delete(pack);
|
||||
}
|
||||
|
||||
auto debounce_reload = std::chrono::system_clock::now();
|
||||
|
||||
/**
|
||||
* @param connection
|
||||
* @param command
|
||||
@@ -934,6 +936,14 @@ void ConsoleReloadZoneQuests(
|
||||
return;
|
||||
}
|
||||
|
||||
// if now is within 1 second, return
|
||||
if (std::chrono::system_clock::now() - debounce_reload < std::chrono::seconds(1)) {
|
||||
debounce_reload = std::chrono::system_clock::now();
|
||||
return;
|
||||
}
|
||||
|
||||
debounce_reload = std::chrono::system_clock::now();
|
||||
|
||||
std::string zone_short_name = args[0];
|
||||
|
||||
connection->SendLine(fmt::format("Reloading Zone [{}]...", zone_short_name));
|
||||
|
||||
Reference in New Issue
Block a user