Core/Waypoints: Refactor to split data into path and node related info in db
Port From (https://github.com/TrinityCore/TrinityCore/commit/12186ef8573f60abeff4747da58767ee71092600)
This commit is contained in:
@@ -915,16 +915,16 @@ namespace Game.Chat
|
||||
return true;
|
||||
}
|
||||
|
||||
[Command("waypoint_data", RBACPermissions.CommandReloadWaypointData, true)]
|
||||
[Command("waypoint_path", RBACPermissions.CommandReloadWaypointPath, true)]
|
||||
static bool HandleReloadWpCommand(CommandHandler handler, StringArguments args)
|
||||
{
|
||||
if (args != null)
|
||||
Log.outInfo(LogFilter.Server, "Re-Loading Waypoints data from 'waypoints_data'");
|
||||
Log.outInfo(LogFilter.Server, "Re-Loading Waypoints data from 'waypoint_path' and 'waypoint_path_node'");
|
||||
|
||||
Global.WaypointMgr.Load();
|
||||
Global.WaypointMgr.LoadPaths();
|
||||
|
||||
if (args != null)
|
||||
handler.SendGlobalGMSysMessage("DB Table 'waypoint_data' reloaded.");
|
||||
handler.SendGlobalGMSysMessage("DB Tables 'waypoint_path' and 'waypoint_path_node' reloaded.");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user