From 2fb97a676fad7dd7fc46d0f895e4180f4d3c09e4 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 5 Jul 2024 21:10:26 -0500 Subject: [PATCH] allow some dev commands for players (print) --- src/engine/gameManager/DevCmdManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/DevCmdManager.java b/src/engine/gameManager/DevCmdManager.java index f0b14dd3..a09f041c 100644 --- a/src/engine/gameManager/DevCmdManager.java +++ b/src/engine/gameManager/DevCmdManager.java @@ -184,8 +184,8 @@ public enum DevCmdManager { case "printstats": case "printskills": case "printpowers": - if(target.equals(pcSender)) - playerAllowed = true; + if(!a.status.equals(Enum.AccountStatus.ADMIN)) + target = pcSender; break; } if (!playerAllowed && !a.status.equals(Enum.AccountStatus.ADMIN)) {