diff --git a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/internal/RedisBungeePlugin.java b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/internal/RedisBungeePlugin.java index cb16cc7..7ce5560 100644 --- a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/internal/RedisBungeePlugin.java +++ b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/internal/RedisBungeePlugin.java @@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit; */ public interface RedisBungeePlugin

extends EventsPlatform{ - default void start() { + default void initialize() { } diff --git a/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeBungeePlugin.java b/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeBungeePlugin.java index a6e159a..9abf641 100644 --- a/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeBungeePlugin.java +++ b/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeBungeePlugin.java @@ -330,7 +330,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin @Override - public void start() { + public void initialize() { ThreadFactory factory = ((ThreadPoolExecutor) getExecutorService()).getThreadFactory(); ScheduledExecutorService service = Executors.newScheduledThreadPool(24, factory); try { @@ -609,7 +609,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin @Override public void onEnable() { - start(); + initialize(); } @Override diff --git a/RedisBungee-Velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java b/RedisBungee-Velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java index 347f837..1fed480 100644 --- a/RedisBungee-Velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java +++ b/RedisBungee-Velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java @@ -83,6 +83,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin { this.server = server; this.logger = logger; this.dataFolder = dataDirectory.toFile(); + } @@ -347,7 +348,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin { @Override - public void start() { + public void initialize() { try { loadConfig(); } catch (IOException e) { @@ -625,7 +626,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin { @Subscribe public void proxyInit(ProxyInitializeEvent event) { - start(); + initialize(); } @Subscribe