Removed debug messages

This commit is contained in:
CharonInferar
2014-08-17 14:35:17 +02:00
parent 400a72eb7c
commit cb6bbe37ea
4 changed files with 10 additions and 25 deletions
+4 -14
View File
@@ -85,17 +85,14 @@ public class CommandService implements INetworkDispatch {
return false;
if (actor.isPlayer() && command.getCharacterAbility().length() > 0 && !actor.hasAbility(command.getCharacterAbility())){
System.out.println("RETURN 1! " + command.getCharacterAbility());
return false;
}
if (command.isDisabled()){
System.out.println("RETURN 2!");
return false;
}
if (actor.hasCooldown(command.getCooldownGroup()) || actor.hasCooldown(command.getCommandName())){
System.out.println("RETURN 3!");
return false;
}
@@ -117,11 +114,10 @@ public class CommandService implements INetworkDispatch {
for (byte locomotion : command.getInvalidLocomotions()) {
if (actor.getLocomotion() == locomotion) {
System.out.println("RETURN 4!");
return false;
}
}
System.out.println("IN CALLCOMMAND!");
switch (command.getTargetType()) {
case 0: // Target Not Used For This Command
break;
@@ -257,7 +253,7 @@ public class CommandService implements INetworkDispatch {
default:
break;
}
System.out.println("IN CALLCOMMAND2!");
switch (command.getTarget()) {
case 0: // Ally Only
if (target == null) {
@@ -306,7 +302,7 @@ public class CommandService implements INetworkDispatch {
default:
break;
}
System.out.println("IN CALLCOMMAND! processCommand55");
if (command.shouldCallOnTarget()) {
if (target == null || !(target instanceof CreatureObject)) {
return false;
@@ -327,14 +323,12 @@ public class CommandService implements INetworkDispatch {
if(command instanceof CombatCommand) {
try {
System.out.println("IN CALLCOMMAND! processCommand");
processCommand(actor, target, (BaseSWGCommand) command.clone(), actionCounter, commandArgs);
} catch (CloneNotSupportedException e) {
e.printStackTrace();
}
}
else {
System.out.println("IN CALLCOMMAND! No combat cmdprocessCommand");
processCommand(actor, target, command, actionCounter, commandArgs);
}
@@ -643,7 +637,6 @@ public class CommandService implements INetworkDispatch {
for (BaseSWGCommand command : commands) {
if (command.getCommandName().equalsIgnoreCase(name)) {
System.out.println("commmand " + command.getCommandName());
return command;
}
}
@@ -663,12 +656,10 @@ public class CommandService implements INetworkDispatch {
if (commandName.equalsIgnoreCase(name)) {
if (isCombatCommand(commandName)) {
CombatCommand command = new CombatCommand(commandName);
System.out.println("commmand " + command.getCommandName());
commandLookup.add(command);
return command;
} else {
BaseSWGCommand command = new BaseSWGCommand(commandName);
System.out.println("commmand " + command.getCommandName());
commandLookup.add(command);
return command;
}
@@ -700,7 +691,7 @@ public class CommandService implements INetworkDispatch {
}
public void processCommand(CreatureObject actor, SWGObject target, BaseSWGCommand command, int actionCounter, String commandArgs) {
System.out.println("NPC command name1 " + command.getCommandName());
if (command.getGodLevel() > 0 || command.getCommandName().equals("setgodmode") || command.getCommandName().equals("server") || command.getCommandName().equals("teleport")
|| command.getCommandName().equals("teleportto") || command.getCommandName().equals("teleporttarget") ) {
String accessLevel = core.adminService.getAccessLevelFromDB(actor.getClient().getAccountId());
@@ -739,7 +730,6 @@ public class CommandService implements INetworkDispatch {
}
if (command instanceof CombatCommand) {
System.out.println("NPC command name2 " + command.getCommandName());
processCombatCommand(actor, target, (CombatCommand) command, actionCounter, commandArgs);
} else
if (FileUtilities.doesFileExist("scripts/commands/" + command.getCommandName().toLowerCase() + ".py")) {