From fce29989563103fe8b36c60e3942a658ff62a9ce Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 20 May 2019 09:57:38 +0100 Subject: Fix plugin init (#15) --- .../src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spark-bungeecord') diff --git a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java index 193ae06..121a678 100644 --- a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java +++ b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java @@ -37,10 +37,11 @@ import java.util.stream.Collectors; public class SparkBungeeCordPlugin extends Plugin implements SparkPlugin { - private final SparkPlatform platform = new SparkPlatform(this); + private SparkPlatform platform; @Override public void onEnable() { + this.platform = new SparkPlatform(this); this.platform.enable(); getProxy().getPluginManager().registerCommand(this, new SparkCommand(this)); } -- cgit