From 7f8652b477205d2cf26f2cb0d9c1ab840f5a6df9 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 3 Apr 2024 20:09:46 -0500 Subject: [PATCH] dev commands broadcast to server --- src/engine/gameManager/DevCmdManager.java | 7 +++++++ 1 file changed, 7 insertions(+) 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; }