|
|
@ -180,18 +180,20 @@ 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; |
|
|
|
switch(adc.getMainCmdString()){ |
|
|
|
if(ConfigManager.MB_WORLD_TESTMODE.getValue().equals("true")) { |
|
|
|
case "printresists": |
|
|
|
switch (adc.getMainCmdString()) { |
|
|
|
case "printstats": |
|
|
|
case "printresists": |
|
|
|
case "printskills": |
|
|
|
case "printstats": |
|
|
|
case "printpowers": |
|
|
|
case "printskills": |
|
|
|
case "gimme": |
|
|
|
case "printpowers": |
|
|
|
case "goto": |
|
|
|
case "gimme": |
|
|
|
case"teleportmode": |
|
|
|
case "goto": |
|
|
|
playerAllowed = true; |
|
|
|
case "teleportmode": |
|
|
|
if(!a.status.equals(Enum.AccountStatus.ADMIN)) |
|
|
|
playerAllowed = true; |
|
|
|
target = pcSender; |
|
|
|
if (!a.status.equals(Enum.AccountStatus.ADMIN)) |
|
|
|
break; |
|
|
|
target = pcSender; |
|
|
|
|
|
|
|
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); |
|
|
|