Fixed issue with returning combat commands

This commit is contained in:
Treeku
2014-04-07 05:22:44 +01:00
parent b89190fd97
commit 44c4d8632c
+10 -1
View File
@@ -487,8 +487,17 @@ public class CommandService implements INetworkDispatch {
}
public CombatCommand registerCombatCommand(String name) {
BaseSWGCommand command = getCommandByName(name);
if (command instanceof CombatCommand) {
return (CombatCommand) command;
}
return null;
}
public BaseSWGCommand registerCommand(String name) { return getCommandByName(name); }
public CombatCommand registerCombatCommand(String name) { return getCommandByName(name); }
public BaseSWGCommand registerGmCommand(String name) { return getCommandByName(name); }
public void registerAlias(String name, String target) { }