From f6d20b9f32fc7031409208fbc250c978bc767364 Mon Sep 17 00:00:00 2001 From: RayzsYT <51991564+RayzsYT@users.noreply.github.com> Date: Thu, 23 May 2024 19:16:48 +0200 Subject: [PATCH] Fix Animation-Disable --- .../java/de/rayzs/pat/api/brand/impl/BukkitServerBrand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/rayzs/pat/api/brand/impl/BukkitServerBrand.java b/src/main/java/de/rayzs/pat/api/brand/impl/BukkitServerBrand.java index 14f1577f..da68c944 100644 --- a/src/main/java/de/rayzs/pat/api/brand/impl/BukkitServerBrand.java +++ b/src/main/java/de/rayzs/pat/api/brand/impl/BukkitServerBrand.java @@ -57,7 +57,11 @@ public class BukkitServerBrand implements ServerBrand { TASK = -1; } - if(!Storage.ConfigSections.Settings.CUSTOM_BRAND.ENABLED || Storage.ConfigSections.Settings.CUSTOM_BRAND.REPEAT_DELAY == -1) return; + if(!Storage.ConfigSections.Settings.CUSTOM_BRAND.ENABLED) return; + if(Storage.ConfigSections.Settings.CUSTOM_BRAND.REPEAT_DELAY == -1) { + BRAND = Storage.ConfigSections.Settings.CUSTOM_BRAND.BRANDS.getLines().get(0) + "§r"; + return; + } AtomicInteger animationState = new AtomicInteger(0); TASK = Bukkit.getScheduler().scheduleAsyncRepeatingTask(BukkitLoader.getPlugin(), () -> {