Class ListenerSvc

java.lang.Object
com.djrapitops.plan.settings.ListenerSvc
All Implemented Interfaces:
ListenerService

@Singleton public class ListenerSvc extends Object implements ListenerService
  • Constructor Details

    • ListenerSvc

      @Inject public ListenerSvc(net.playeranalytics.plugin.server.Listeners listeners)
  • Method Details

    • registerListenerForPlan

      public void registerListenerForPlan(Object listener)
      Description copied from interface: ListenerService
      Attempts to register an event listener to the platform as Plan.

      This is an utility method for implementing listeners for platforms that don't have static access to the listener registration.

      The listener needs to fulfill the qualities required by the platform.

      Specified by:
      registerListenerForPlan in interface ListenerService
      Parameters:
      listener - listener object.
    • register

      public void register()