From 84abeb62994c25f02c30b9c0c8483f08fcfd515e Mon Sep 17 00:00:00 2001 From: RayzsYT <51991564+RayzsYT@users.noreply.github.com> Date: Thu, 16 May 2024 21:08:12 +0200 Subject: [PATCH] Remove Start-Delay --- .../java/de/rayzs/pat/plugin/brand/impl/BukkitServerBrand.java | 2 +- .../java/de/rayzs/pat/plugin/brand/impl/BungeeServerBrand.java | 2 +- .../de/rayzs/pat/plugin/brand/impl/VelocityServerBrand.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/rayzs/pat/plugin/brand/impl/BukkitServerBrand.java b/src/main/java/de/rayzs/pat/plugin/brand/impl/BukkitServerBrand.java index f0c0c8f2..e1bfbc4c 100644 --- a/src/main/java/de/rayzs/pat/plugin/brand/impl/BukkitServerBrand.java +++ b/src/main/java/de/rayzs/pat/plugin/brand/impl/BukkitServerBrand.java @@ -61,7 +61,7 @@ public class BukkitServerBrand implements ServerBrand { if(animationState.getAndIncrement() >= Storage.CUSTOM_SERVER_BRANDS.size() - 1) animationState.set(0); BRAND = Storage.CUSTOM_SERVER_BRANDS.get(animationState.get()) + "§r"; Bukkit.getOnlinePlayers().forEach(this::send); - }, Storage.CUSTOM_SERVER_BRAND_REPEAT_DELAY, Storage.CUSTOM_SERVER_BRAND_REPEAT_DELAY); + }, 1, Storage.CUSTOM_SERVER_BRAND_REPEAT_DELAY); } @Override diff --git a/src/main/java/de/rayzs/pat/plugin/brand/impl/BungeeServerBrand.java b/src/main/java/de/rayzs/pat/plugin/brand/impl/BungeeServerBrand.java index 7563251e..6ee51171 100644 --- a/src/main/java/de/rayzs/pat/plugin/brand/impl/BungeeServerBrand.java +++ b/src/main/java/de/rayzs/pat/plugin/brand/impl/BungeeServerBrand.java @@ -34,7 +34,7 @@ public class BungeeServerBrand implements ServerBrand { if(animationState.getAndIncrement() >= Storage.CUSTOM_SERVER_BRANDS.size() - 1) animationState.set(0); BRAND = MessageTranslator.replaceMessage(Storage.CUSTOM_SERVER_BRANDS.get(animationState.get())) + "§r"; SERVER.getPlayers().forEach(this::send); - }, Storage.CUSTOM_SERVER_BRAND_REPEAT_DELAY, Storage.CUSTOM_SERVER_BRAND_REPEAT_DELAY, TimeUnit.MILLISECONDS); + }, 1, Storage.CUSTOM_SERVER_BRAND_REPEAT_DELAY, TimeUnit.MILLISECONDS); } @Override diff --git a/src/main/java/de/rayzs/pat/plugin/brand/impl/VelocityServerBrand.java b/src/main/java/de/rayzs/pat/plugin/brand/impl/VelocityServerBrand.java index 252b0432..24ddb228 100644 --- a/src/main/java/de/rayzs/pat/plugin/brand/impl/VelocityServerBrand.java +++ b/src/main/java/de/rayzs/pat/plugin/brand/impl/VelocityServerBrand.java @@ -43,7 +43,7 @@ public class VelocityServerBrand implements ServerBrand { if(animationState.getAndIncrement() >= Storage.CUSTOM_SERVER_BRANDS.size() - 1) animationState.set(0); BRAND = MessageTranslator.replaceMessage(Storage.CUSTOM_SERVER_BRANDS.get(animationState.get())) + "§r"; SERVER.getAllPlayers().forEach(this::send); - }).repeat(Storage.CUSTOM_SERVER_BRAND_REPEAT_DELAY, TimeUnit.MILLISECONDS).schedule(); + }).repeat(1, TimeUnit.MILLISECONDS).schedule(); }