|
|
@ -180,6 +180,7 @@ public enum DevCmdManager { |
|
|
|
//kill any commands not available to everyone on production server
|
|
|
|
//kill any commands not available to everyone on production server
|
|
|
|
//only admin level can run dev commands on production
|
|
|
|
//only admin level can run dev commands on production
|
|
|
|
boolean playerAllowed = false; |
|
|
|
boolean playerAllowed = false; |
|
|
|
|
|
|
|
if(ConfigManager.MB_WORLD_TESTMODE.getValue().equals("true")) { |
|
|
|
switch (adc.getMainCmdString()) { |
|
|
|
switch (adc.getMainCmdString()) { |
|
|
|
case "printresists": |
|
|
|
case "printresists": |
|
|
|
case "printstats": |
|
|
|
case "printstats": |
|
|
@ -193,6 +194,7 @@ public enum DevCmdManager { |
|
|
|
target = pcSender; |
|
|
|
target = pcSender; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if (!playerAllowed && !a.status.equals(Enum.AccountStatus.ADMIN)) { |
|
|
|
if (!playerAllowed && !a.status.equals(Enum.AccountStatus.ADMIN)) { |
|
|
|
Logger.info("Account " + a.getUname() + "attempted to use dev command " + cmd); |
|
|
|
Logger.info("Account " + a.getUname() + "attempted to use dev command " + cmd); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|