Klasse ArenaAdminCommands

java.lang.Object
de.delinkedde.mobarenareborn.command.commands.ArenaAdminCommands
Alle implementierten Schnittstellen:
MobArenaCommand

public final class ArenaAdminCommands extends Object implements MobArenaCommand
Lifecycle administration commands: create, remove, enable, disable and arenas.

The mutating commands require Permissions.ADMIN_SETUP; listing requires Permissions.COMMAND_ARENAS. All operate on an arena by name and are usable from the console.

  • Konstruktordetails

    • ArenaAdminCommands

      public ArenaAdminCommands(@NotNull @NotNull MobArenaPlugin plugin, @NotNull @NotNull ArenaManager arenas, @NotNull @NotNull SessionManager sessions, @NotNull @NotNull Messages messages, @NotNull @NotNull StashStore stashStore)
      Parameter:
      plugin - the owning plugin, used for error logging
      arenas - the arena manager
      sessions - the session manager backing the force commands
      messages - the message renderer
  • Methodendetails

    • register

      public void register(@NotNull @NotNull com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> root)
      Beschreibung aus Schnittstelle kopiert: MobArenaCommand
      Attaches this subcommand to the root /ma builder.
      Angegeben von:
      register in Schnittstelle MobArenaCommand
      Parameter:
      root - the root literal builder to extend, typically via ArgumentBuilder.then(com.mojang.brigadier.builder.ArgumentBuilder)