Class PluginEventListener

java.lang.Object
org.sgrewritten.stargate.listener.PluginEventListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class PluginEventListener extends Object implements org.bukkit.event.Listener
Listens for and sets up any relevant plugins being loaded
  • Constructor Details

    • PluginEventListener

      public PluginEventListener(@NotNull @NotNull StargateEconomyAPI economyManager, @NotNull @NotNull BlockLoggingManager blockLoggingManager)
      Parameters:
      economyManager -

      An economy manager

      blockLoggingManager -

      A block logger interface

  • Method Details

    • onPluginEnable

      public void onPluginEnable(org.bukkit.event.server.PluginEnableEvent event)
      Listens for any valid economy plugins being loaded and sets up economy if necessary
      Parameters:
      event -

      The triggered plugin enable event

    • onPluginDisable

      public void onPluginDisable(org.bukkit.event.server.PluginDisableEvent event)
      Listens for the economy manager plugin being unloaded and informs the console
      Parameters:
      event -

      The triggered plugin unload event