Core/Chat: Provide a fully-formed protocol for addons to interact with GM commands
Port From (https://github.com/TrinityCore/TrinityCore/commit/42c65c3bc22f97a96d9db481997d74e7103f8e64)
This commit is contained in:
@@ -402,6 +402,9 @@ namespace Game
|
||||
if (!WorldConfig.GetBoolValue(WorldCfg.AddonChannel))
|
||||
return;
|
||||
|
||||
if (prefix == AddonChannelCommandHandler.PREFIX && new AddonChannelCommandHandler(this).ParseCommand(text))
|
||||
return;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case ChatMsg.Guild:
|
||||
|
||||
Reference in New Issue
Block a user