From 2d4f12207351b565489a2a604a915bee44f73b3f Mon Sep 17 00:00:00 2001 From: RayzsYT <51991564+RayzsYT@users.noreply.github.com> Date: Mon, 20 May 2024 17:46:16 +0200 Subject: [PATCH] Fix Storage --- .../java/de/rayzs/pat/api/brand/CustomServerBrand.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/de/rayzs/pat/api/brand/CustomServerBrand.java b/src/main/java/de/rayzs/pat/api/brand/CustomServerBrand.java index bf329165..7341fa2b 100644 --- a/src/main/java/de/rayzs/pat/api/brand/CustomServerBrand.java +++ b/src/main/java/de/rayzs/pat/api/brand/CustomServerBrand.java @@ -1,20 +1,14 @@ package de.rayzs.pat.api.brand; import de.rayzs.pat.utils.Reflection; -import de.rayzs.pat.api.brand.impl.BukkitServerBrand; -import de.rayzs.pat.api.brand.impl.BungeeServerBrand; -import de.rayzs.pat.api.brand.impl.VelocityServerBrand; -import de.rayzs.pat.utils.Storage; +import de.rayzs.pat.api.brand.impl.*; public class CustomServerBrand { public static final String CHANNEL_NAME = Reflection.getMinor() < 13 ? "MC|Brand" : "minecraft:brand"; private static final ServerBrand SERVER_BRAND = Reflection.isVelocityServer() ? new VelocityServerBrand() : Reflection.isProxyServer() ? new BungeeServerBrand() : new BukkitServerBrand(); - public static void initialize() { - if(Storage.CUSTOM_SERVER_BRAND_REPEAT_DELAY < 1) Storage.CUSTOM_SERVER_BRAND_REPEAT_DELAY = 20; - refreshTask(); - } + public static void initialize() { refreshTask(); } public static void refreshTask() { SERVER_BRAND.initializeTask(); } public static void preparePlayer(Object playerObj) { SERVER_BRAND.preparePlayer(playerObj); } public static void sendBrandToPlayer(Object playerObj) { SERVER_BRAND.send(playerObj); }