From e7f0526fa3b9da11e667d72568b75d076f2aeb2c Mon Sep 17 00:00:00 2001 From: Outfit8TSB Date: Tue, 22 Oct 2024 22:06:34 +0900 Subject: [PATCH] Update ViaVersionProtocolSupportBukkit.java --- .../ViaVersionProtocolSupportBukkit.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/falixsrv/approximasteranarchy2004/ViaVersionProtocolSupportBukkit.java b/src/main/java/me/falixsrv/approximasteranarchy2004/ViaVersionProtocolSupportBukkit.java index 9c12a0a..38f4c2d 100644 --- a/src/main/java/me/falixsrv/approximasteranarchy2004/ViaVersionProtocolSupportBukkit.java +++ b/src/main/java/me/falixsrv/approximasteranarchy2004/ViaVersionProtocolSupportBukkit.java @@ -32,14 +32,17 @@ public void onLoad() { } @Override public void onEnable() { - Via.getManager().addEnableListener(() -> this.init()); Component message = Component.text() .append(Component.text("ViaVersion", NamedTextColor.AQUA)) .append(Component.text("ProtocolSupport", NamedTextColor.GRAY)) .build(); Bukkit.getServer().sendMessage(message); + this.start() } + public void start() { + com.viaversion.viaversion.api.Via.getManager().addEnableListener(() -> this.init()); + } @Override public void disable() {