mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-27 17:57:22 -04:00
Added system err print for combat commands being considered regular scripted commands
Removed loading of buildout objects temporarily to help make it easier to resolve major loading crashes Commands that are considered combat commands by the client but are using regular command format will work, it'll just give an error. They should be moved to the proper combat command format.
This commit is contained in:
@@ -451,8 +451,13 @@ public class CommandService implements INetworkDispatch {
|
||||
}
|
||||
|
||||
public void processCombatCommand(CreatureObject attacker, SWGObject target, CombatCommand command, int actionCounter, String commandArgs) {
|
||||
if (FileUtilities.doesFileExist("scripts/commands/combat/" + command.getCommandName() + ".py")) {
|
||||
core.scriptService.callScript("scripts/commands/combat/", command.getCommandName(), "setup", core, attacker, target, command);
|
||||
if (FileUtilities.doesFileExist("scripts/commands/combat/" + command.getCommandName().toLowerCase() + ".py")) {
|
||||
core.scriptService.callScript("scripts/commands/combat/", command.getCommandName().toLowerCase(), "setup", core, attacker, target, command);
|
||||
} else {
|
||||
if (FileUtilities.doesFileExist("scripts/commands/" + command.getCommandName().toLowerCase() + ".py")) {
|
||||
System.err.print("Command " + command.getCommandName() + " is considered a combat command by the client but has a regular command script!");
|
||||
core.scriptService.callScript("scripts/commands/combat/", command.getCommandName().toLowerCase(), "run", core, attacker, target, "");
|
||||
}
|
||||
}
|
||||
|
||||
boolean success = true;
|
||||
|
||||
Reference in New Issue
Block a user