Klasse PlayerArenaCommands

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

public final class PlayerArenaCommands extends Object implements MobArenaCommand
Player-facing arena commands: join, leave and ready.

These drive the lobby flow through the SessionManager. Joining places a player in the arena lobby; readying up starts the countdown once everyone is ready; leaving restores the player's saved state.

  • Konstruktordetails

    • PlayerArenaCommands

      public PlayerArenaCommands(@NotNull @NotNull ArenaManager arenas, @NotNull @NotNull SessionManager sessions, @NotNull @NotNull Messages messages, @NotNull @NotNull RewardCache rewardCache, @NotNull @NotNull SpectateManager spectate, @NotNull @NotNull StatsService stats)
      Parameter:
      arenas - the arena manager
      sessions - the session manager handling join, leave and ready
      messages - the message renderer
      rewardCache - the reward cache backing /ma claim
      spectate - the spectate manager backing /ma spectate
      stats - the statistics service backing /ma stats and /ma top
  • 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)