diff --git a/src/main/java/me/angeschossen/lands/api/war/captureflag/CaptureFlag.java b/src/main/java/me/angeschossen/lands/api/war/captureflag/CaptureFlag.java index a1e3e7c..0eda7b1 100644 --- a/src/main/java/me/angeschossen/lands/api/war/captureflag/CaptureFlag.java +++ b/src/main/java/me/angeschossen/lands/api/war/captureflag/CaptureFlag.java @@ -19,6 +19,20 @@ public interface CaptureFlag extends ExpressionEntity { */ @NotNull BlockPosition getPosition(); + /** + * Set the seconds between each firework spawned. This is an approximate value as fireworks only spawn when the flag is ticked. + * + * @param interval if smaller than 1, disabled firework spawning + */ + void setFireworkSpawnInterval(long interval); + + /** + * Get the seconds between each firework spawned. This is an approximate value as fireworks only spawn when the flag is ticked. + * + * @return if smaller than 1, firework spawning is disabled + */ + long getLastFireworkSpawned(); + /** * Get the team that placed the flag. *