From 42a71396cd597c6a0c6d75c55cbc42d073e6b61a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 19 Jan 2025 19:50:50 -0600 Subject: [PATCH] persist print commands for non-testmode --- src/engine/gameManager/DevCmdManager.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/engine/gameManager/DevCmdManager.java b/src/engine/gameManager/DevCmdManager.java index 1590590b..c111d755 100644 --- a/src/engine/gameManager/DevCmdManager.java +++ b/src/engine/gameManager/DevCmdManager.java @@ -194,6 +194,17 @@ public enum DevCmdManager { target = pcSender; break; } + }else{ + switch (adc.getMainCmdString()) { + case "printresists": + case "printstats": + case "printskills": + case "printpowers": + playerAllowed = true; + if (!a.status.equals(Enum.AccountStatus.ADMIN)) + target = pcSender; + break; + } } if (!playerAllowed && !a.status.equals(Enum.AccountStatus.ADMIN)) { Logger.info("Account " + a.getUname() + "attempted to use dev command " + cmd);