From 7fbd546d43a3373c2cde605f9545486eb182e5c6 Mon Sep 17 00:00:00 2001 From: Myles Date: Thu, 12 Oct 2017 12:16:38 +0100 Subject: [PATCH] Ensure ViaBackwards init is after ViaVersion on sponge --- sponge/src/main/java/nl/matsv/viabackwards/SpongePlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sponge/src/main/java/nl/matsv/viabackwards/SpongePlugin.java b/sponge/src/main/java/nl/matsv/viabackwards/SpongePlugin.java index 2ac7ea7e..39fb6b9b 100644 --- a/sponge/src/main/java/nl/matsv/viabackwards/SpongePlugin.java +++ b/sponge/src/main/java/nl/matsv/viabackwards/SpongePlugin.java @@ -14,6 +14,7 @@ import com.google.inject.Inject; import nl.matsv.viabackwards.api.ViaBackwardsPlatform; import nl.matsv.viabackwards.sponge.VersionInfo; import org.spongepowered.api.event.Listener; +import org.spongepowered.api.event.Order; import org.spongepowered.api.event.game.state.GameAboutToStartServerEvent; import org.spongepowered.api.plugin.Dependency; import org.spongepowered.api.plugin.Plugin; @@ -34,7 +35,7 @@ public class SpongePlugin implements ViaBackwardsPlatform { @Inject private PluginContainer container; - @Listener + @Listener(order = Order.LATE) public void onServerStart(GameAboutToStartServerEvent e) { // Setup Logger this.logger = new LoggerWrapper(container.getLogger());