From 57a258730c8200e23cf6b1a69f8890d576c4b338 Mon Sep 17 00:00:00 2001 From: Angeschossen <24841122+Angeschossen@users.noreply.github.com> Date: Thu, 28 Nov 2024 20:38:30 +0100 Subject: [PATCH] 7.10.13 --- .../lands/api/war/captureflag/CaptureFlag.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. *