Changed references

This commit is contained in:
Sekwah 2018-06-06 22:41:11 +01:00
parent 2387caaa8c
commit eb514a9973
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class AdvancedPortalsPlugin extends JavaPlugin {
public void onEnable() {
// TODO actually get the minecraft version
this.portalsCore = new AdvancedPortalsCore(new DataStorage(this.getDataFolder()),
this.portalsCore = new AdvancedPortalsCore(this.getDataFolder(),
new SpigotInfoLogger(this), new CommandRegister(this), new ConnectorDataCollector(), new int[]{1,12,2});
//injector = Guice.createInjector(new RepositoryModule(this.portalsCore));
this.getServer().getPluginManager().registerEvents(new Listeners(), this);

View File

@ -19,7 +19,7 @@ import javax.inject.Inject;
public class Listeners implements Listener {
private CoreListeners coreListeners = AdvancedPortalsCore.getCoreListeners();
private CoreListeners coreListeners = AdvancedPortalsCore.getInstance().getCoreListeners();
@EventHandler
public void onJoinEvent(PlayerJoinEvent event) {