From 90fc5aab8d708adce2c29edde9ab061efb4e4fd8 Mon Sep 17 00:00:00 2001 From: Obique Date: Sat, 21 Mar 2020 12:17:52 -0400 Subject: [PATCH] Added flags to CommandTimer --- pswgcommon | 2 +- .../services/support/global/commands/CommandQueueService.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pswgcommon b/pswgcommon index d8a230edd..abffe0610 160000 --- a/pswgcommon +++ b/pswgcommon @@ -1 +1 @@ -Subproject commit d8a230edd0dddb8589ed0936310ef0fcd03799e0 +Subproject commit abffe06102c4f64872ea47a463d17d907cb608df diff --git a/src/main/java/com/projectswg/holocore/services/support/global/commands/CommandQueueService.java b/src/main/java/com/projectswg/holocore/services/support/global/commands/CommandQueueService.java index a21e858aa..a5d93aa85 100644 --- a/src/main/java/com/projectswg/holocore/services/support/global/commands/CommandQueueService.java +++ b/src/main/java/com/projectswg/holocore/services/support/global/commands/CommandQueueService.java @@ -170,6 +170,7 @@ public class CommandQueueService extends Service { commandTimer.setCooldownMax((float) cooldownTime); commandTimer.setCommandNameCrc(command.getCrc()); commandTimer.setSequenceId(counter); + commandTimer.addFlag(CommandTimer.CommandTimerFlag.COOLDOWN); creature.sendSelf(commandTimer); executor.execute((long) (cooldownTime * 1000), () -> activeCooldownGroups.remove(group));