Fix Animation-Disable

This commit is contained in:
RayzsYT committed 2024-05-23 19:16:48 +02:00
1 parent 7d19d7e7f8
commit f6d20b9f32
1 file changed
+5 -1
@@ -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(), () -> {