diff --git a/src/main/java/com/sekwah/advancedportals/core/AdvancedPortalsCore.java b/src/main/java/com/sekwah/advancedportals/core/AdvancedPortalsCore.java index 4bbc5ca1..6a1cf6d1 100644 --- a/src/main/java/com/sekwah/advancedportals/core/AdvancedPortalsCore.java +++ b/src/main/java/com/sekwah/advancedportals/core/AdvancedPortalsCore.java @@ -46,6 +46,7 @@ public class AdvancedPortalsCore { private PortalServices portalServices = injector.getInstance(PortalServices.class); private DestinationServices destiServices = injector.getInstance(DestinationServices.class); private PortalTempDataServices portalTempDataServices = injector.getInstance(PortalTempDataServices.class); + private ConfigRepository configRepository = injector.getInstance(ConfigRepository.class); public static final String version = "1.0.0"; diff --git a/src/main/java/com/sekwah/advancedportals/core/CoreListeners.java b/src/main/java/com/sekwah/advancedportals/core/CoreListeners.java index 22a250ad..0da94de5 100644 --- a/src/main/java/com/sekwah/advancedportals/core/CoreListeners.java +++ b/src/main/java/com/sekwah/advancedportals/core/CoreListeners.java @@ -12,8 +12,10 @@ import com.sekwah.advancedportals.coreconnector.container.WorldContainer; public class CoreListeners { + @Inject private PortalTempDataServices portalTempDataServices; + @Inject private PortalServices portalServices; @Inject diff --git a/src/main/java/com/sekwah/advancedportals/core/api/services/PortalTempDataServices.java b/src/main/java/com/sekwah/advancedportals/core/api/services/PortalTempDataServices.java index 0b05e2e4..a43dcc16 100644 --- a/src/main/java/com/sekwah/advancedportals/core/api/services/PortalTempDataServices.java +++ b/src/main/java/com/sekwah/advancedportals/core/api/services/PortalTempDataServices.java @@ -1,5 +1,6 @@ package com.sekwah.advancedportals.core.api.services; +import com.sekwah.advancedportals.core.AdvancedPortalsCore; import com.sekwah.advancedportals.core.api.portal.PortalException; import com.sekwah.advancedportals.core.entities.PortalLocation; import com.sekwah.advancedportals.coreconnector.container.PlayerContainer; @@ -7,11 +8,11 @@ import com.sekwah.advancedportals.coreconnector.container.PlayerContainer; public final class PortalTempDataServices { public void activateCooldown(PlayerContainer player) { - + AdvancedPortalsCore.getInfoLogger().log("PLAYER HAS JOINED TEST"); } public void playerLeave(PlayerContainer player) { - + AdvancedPortalsCore.getInfoLogger().log("PLAYER HAS LEFT TEST"); } public void playerSelectorActivate(PlayerContainer player, PortalLocation blockLoc, boolean leftClick) {