From 1346f490c9469e972f41f324a26447064aa4e107 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 2 Apr 2024 19:33:09 -0500 Subject: [PATCH] players can now use ./prinstats and ./printresists on themselves --- src/engine/gameManager/DevCmdManager.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/engine/gameManager/DevCmdManager.java b/src/engine/gameManager/DevCmdManager.java index acca750b..7747ba33 100644 --- a/src/engine/gameManager/DevCmdManager.java +++ b/src/engine/gameManager/DevCmdManager.java @@ -179,6 +179,15 @@ public enum DevCmdManager { //kill any commands not available to everyone on production server //only admin level can run dev commands on production + if((cmd.toLowerCase().equals("printstats") || cmd.toLowerCase().equals("printresists")) && target.equals(pcSender)){ + // execute command; + try { + adc.doCmd(pcSender, argString, target); + } catch (Exception e) { + } + + return true; + } if (a.status.equals(Enum.AccountStatus.ADMIN) == false && a.getUname().toLowerCase().equals("fatboy") == false) { Logger.info("Account " + a.getUname() + "attempted to use dev command " + cmd);