Klasse MobArenaPlugin

Alle implementierten Schnittstellen:
LifecycleEventOwner, net.kyori.adventure.key.Namespaced, CommandExecutor, TabCompleter, TabExecutor, Plugin

public final class MobArenaPlugin extends JavaPlugin
Entry point of the MobArena Reborn plugin.

The class is intentionally thin: its only responsibilities are to build the Services container during onEnable(), register the command tree, and release resources during onDisable(). All domain logic lives in the dedicated subsystems reachable through services().

Siehe auch:
  • Konstruktordetails

    • MobArenaPlugin

      public MobArenaPlugin()
  • Methodendetails

    • onEnable

      public void onEnable()
      Builds the service container and registers commands.

      Command registration is performed through Paper's lifecycle event system rather than the legacy plugin.yml command block, so it is wired here once the services are available.

      Angegeben von:
      onEnable in Schnittstelle Plugin
      Setzt außer Kraft:
      onEnable in Klasse JavaPlugin
    • onDisable

      public void onDisable()
      Releases any resources held by the service container.
      Angegeben von:
      onDisable in Schnittstelle Plugin
      Setzt außer Kraft:
      onDisable in Klasse JavaPlugin
    • services

      @NotNull public @NotNull Services services()
      Returns the service container.
      Gibt zurück:
      the active Services instance
      Löst aus:
      IllegalStateException - if accessed before onEnable() or after onDisable()