Browse Source

allow some dev commands for players (print)

lakebane-new
FatBoy-DOTC 5 months ago
parent
commit
2fb97a676f
  1. 4
      src/engine/gameManager/DevCmdManager.java

4
src/engine/gameManager/DevCmdManager.java

@ -184,8 +184,8 @@ public enum DevCmdManager {
case "printstats": case "printstats":
case "printskills": case "printskills":
case "printpowers": case "printpowers":
if(target.equals(pcSender)) if(!a.status.equals(Enum.AccountStatus.ADMIN))
playerAllowed = true; target = pcSender;
break; break;
} }
if (!playerAllowed && !a.status.equals(Enum.AccountStatus.ADMIN)) { if (!playerAllowed && !a.status.equals(Enum.AccountStatus.ADMIN)) {

Loading…
Cancel
Save