diff --git a/src/com/cnaude/chairs/api/ChairsAPI.java b/src/com/cnaude/chairs/api/ChairsAPI.java index 7b7af17..7c2abbf 100644 --- a/src/com/cnaude/chairs/api/ChairsAPI.java +++ b/src/com/cnaude/chairs/api/ChairsAPI.java @@ -7,7 +7,7 @@ import com.cnaude.chairs.core.PlayerSitData; public class ChairsAPI { private static PlayerSitData pdata; - public ChairsAPI(PlayerSitData pdata) { + public static void init(PlayerSitData pdata) { ChairsAPI.pdata = pdata; } diff --git a/src/com/cnaude/chairs/core/Chairs.java b/src/com/cnaude/chairs/core/Chairs.java index 294999e..3c81d85 100644 --- a/src/com/cnaude/chairs/core/Chairs.java +++ b/src/com/cnaude/chairs/core/Chairs.java @@ -83,7 +83,7 @@ public class Chairs extends JavaPlugin { getServer().getPluginManager().registerEvents(new TryUnsitEventListener(this), this); getServer().getPluginManager().registerEvents(new CommandRestrict(this), this); getCommand("chairs").setExecutor(new ChairsCommand(this, ignoreList)); - new ChairsAPI(getPlayerSitData()); + ChairsAPI.init(getPlayerSitData()); } @Override