diff --git a/src/engine/gameManager/DevCmdManager.java b/src/engine/gameManager/DevCmdManager.java index 7747ba33..0f9fb133 100644 --- a/src/engine/gameManager/DevCmdManager.java +++ b/src/engine/gameManager/DevCmdManager.java @@ -11,6 +11,8 @@ package engine.gameManager; import engine.Enum; import engine.devcmd.AbstractDevCmd; import engine.devcmd.cmds.*; +import engine.net.DispatchMessage; +import engine.net.client.msg.chat.ChatSystemMsg; import engine.objects.AbstractGameObject; import engine.objects.Account; import engine.objects.PlayerCharacter; @@ -213,6 +215,11 @@ public enum DevCmdManager { e.printStackTrace(); } + ChatSystemMsg chatMsg = new ChatSystemMsg(null, pcName + " from account: " + accName + " has used Dev Command: " + cmd); + chatMsg.setMessageType(10); + chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID()); + DispatchMessage.dispatchMsgToAll(chatMsg); + return true; }