From 8e46ddaba55cae3a58068f7d86566e048a4d83f8 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 24 Jul 2020 16:26:30 -0400 Subject: [PATCH] Rename .debug uws to .debug worldstate (clarity change). Port From (https://github.com/TrinityCore/TrinityCore/commit/29db04c3c92c0a6ca5d35d3fcc49d7766e3eddc3) --- Source/Framework/Constants/AccountConst.cs | 2 +- Source/Game/Chat/Commands/DebugCommands.cs | 2 +- .../world/master/2020_07_16_06_world_2017_04_15_01_world.sql | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 sql/updates/world/master/2020_07_16_06_world_2017_04_15_01_world.sql diff --git a/Source/Framework/Constants/AccountConst.cs b/Source/Framework/Constants/AccountConst.cs index 78aea953b..ed0ad3114 100644 --- a/Source/Framework/Constants/AccountConst.cs +++ b/Source/Framework/Constants/AccountConst.cs @@ -244,7 +244,7 @@ namespace Framework.Constants CommandDebugSpawnvehicle = 336, CommandDebugThreat = 337, CommandDebugUpdate = 338, // DEPRECATED: DON'T REUSE - CommandDebugUws = 339, + CommandDebugWorldState = 339, CommandWpgps = 340, CommandDeserter = 341, CommandDeserterBg = 342, diff --git a/Source/Game/Chat/Commands/DebugCommands.cs b/Source/Game/Chat/Commands/DebugCommands.cs index 728b2751b..892bcf637 100644 --- a/Source/Game/Chat/Commands/DebugCommands.cs +++ b/Source/Game/Chat/Commands/DebugCommands.cs @@ -835,7 +835,7 @@ namespace Game.Chat return true; } - [Command("uws", RBACPermissions.CommandDebugUws)] + [Command("worldstate", RBACPermissions.CommandDebugWorldState)] static bool HandleDebugUpdateWorldStateCommand(StringArguments args, CommandHandler handler) { if (!uint.TryParse(args.NextString(), out uint variable) || variable == 0) diff --git a/sql/updates/world/master/2020_07_16_06_world_2017_04_15_01_world.sql b/sql/updates/world/master/2020_07_16_06_world_2017_04_15_01_world.sql new file mode 100644 index 000000000..adf0ef144 --- /dev/null +++ b/sql/updates/world/master/2020_07_16_06_world_2017_04_15_01_world.sql @@ -0,0 +1,4 @@ +-- +UPDATE `command` SET `name`="debug worldstate",`help`="Syntax: debug worldstate $stateId $value + +Sends a world state update for the specified state to your client." WHERE `name`="debug uws";