Class ModuleEvent

java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.driver.event.events.module.ModuleEvent
Direct Known Subclasses:
ModulePostLoadEvent, ModulePostReloadEvent, ModulePostStartEvent, ModulePostStopEvent, ModulePostUnloadEvent, ModulePreLoadEvent, ModulePreReloadEvent, ModulePreStartEvent, ModulePreStopEvent, ModulePreUnloadEvent

public abstract class ModuleEvent extends Event
The base event for all events which are related to modules. By default, all module state changes have their own event. See the package files for a list of all modules.

Each module event contains the associated module and the provider which is associated with the module action.

Since:
4.0
  • Field Details

  • Constructor Details

  • Method Details

    • moduleProvider

      @NonNull public @NonNull ModuleProvider moduleProvider()
      Get the module provider from which the associated module was loaded.
      Returns:
      the module provider from which the associated module was loaded.
    • module

      @NonNull public @NonNull ModuleWrapper module()
      Get the module on which the action is currently taking place.
      Returns:
      the module on which the action is currently taking place.