Klasse ArenaSetupCommands

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

public final class ArenaSetupCommands extends Object implements MobArenaCommand
Geometry setup commands run from inside the world: setup, setwarp, addspawn, delspawn, listspawns and setregion.

All commands require Permissions.ADMIN_SETUP and a player sender, because they read the sender's position. The two-corner region flow keeps the first corner in memory (per arena) until the second corner is supplied.

  • Konstruktordetails

    • ArenaSetupCommands

      public ArenaSetupCommands(@NotNull @NotNull MobArenaPlugin plugin, @NotNull @NotNull ArenaManager arenas, @NotNull @NotNull Messages messages, @NotNull @NotNull ItemTemplates itemTemplates)
      Parameter:
      plugin - the owning plugin, used for error logging
      arenas - the arena manager
      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)