Browse Source

dev commands broadcast to server

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
7f8652b477
  1. 7
      src/engine/gameManager/DevCmdManager.java

7
src/engine/gameManager/DevCmdManager.java

@ -11,6 +11,8 @@ package engine.gameManager;
import engine.Enum; import engine.Enum;
import engine.devcmd.AbstractDevCmd; import engine.devcmd.AbstractDevCmd;
import engine.devcmd.cmds.*; import engine.devcmd.cmds.*;
import engine.net.DispatchMessage;
import engine.net.client.msg.chat.ChatSystemMsg;
import engine.objects.AbstractGameObject; import engine.objects.AbstractGameObject;
import engine.objects.Account; import engine.objects.Account;
import engine.objects.PlayerCharacter; import engine.objects.PlayerCharacter;
@ -213,6 +215,11 @@ public enum DevCmdManager {
e.printStackTrace(); 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; return true;
} }

Loading…
Cancel
Save