mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-16 23:55:23 +01:00
Changed references
This commit is contained in:
parent
2387caaa8c
commit
eb514a9973
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user