Klasse VersionCommand

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

public final class VersionCommand extends Object implements MobArenaCommand
/ma version - prints the running plugin version.

Guarded by Permissions.COMMAND_VERSION, which is granted to everyone by default.

  • Konstruktordetails

    • VersionCommand

      public VersionCommand(@NotNull @NotNull MobArenaPlugin plugin, @NotNull @NotNull Messages messages)
      Parameter:
      plugin - the owning plugin, used for version metadata
      messages - the message renderer used for output
  • 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)