Class CommandBase

java.lang.Object
com.hypixel.hytale.server.core.command.system.AbstractCommand
com.hypixel.hytale.server.core.command.system.basecommands.CommandBase
Direct Known Subclasses:
AssetTagsCommand, AuthCancelCommand, AuthLoginBrowserCommand, AuthLoginDeviceCommand, AuthLogoutCommand, AuthPersistenceCommand, AuthSelectCommand, AuthStatusCommand, BindingsCommand, BlockSetCommand, DebugShapeShowForceCommand, DesyncDamageCommand, DiscoveryLinkCommand, DiscoveryUnlinkCommand, DroplistCommand, DumpCommandsCommand, EchoCommand, EnableTmpTagsCommand, EntityLodCommand, EntitySnapshotLengthCommand, EventTitleCommand, HitDetectionCommand, InteractionSetSnapshotSourceCommand, InteractionSnapshotSourceCommand, KickCommand, KnockbackPresetsCommand, LANDiscoveryCommand, LogCommand, MaxPlayersCommand, MaxViewRadiusCommand, MemoriesClearCommand, MessageTranslationTestCommand, NotifyCommand, NPCBenchmarkCommand, OpAddCommand, OpRemoveCommand, PacksListCommand, PermListCommand, PermReloadCommand, PermTestCommand, PIDCheckCommand, PlayCommandBase, SayCommand, ServerDumpCommand, ServerGCCommand, ServerStatsCpuCommand, ServerStatsGcCommand, ServerStatsMemoryCommand, SetToolHistorySizeCommand, SleepOffsetCommand, SleepTestCommand, StopCommand, SudoCommand, TagPatternCommand, TeleportAllCommand, TeleportOtherToPlayerCommand, TeleportPlayerToCoordinatesCommand, UpdateApplyCommand, UpdateCancelCommand, UpdatePatchlineCommand, UpdateSetupCommand, UpdateStatusCommand, VersionCommand, WarpListCommand, WarpReloadCommand, WarpRemoveCommand, WhitelistClearCommand, WhitelistListCommand, WhitelistStatusCommand, WorldGenBenchmarkCommand, WorldListCommand, WorldLoadCommand, WorldRemoveCommand, WorldSetDefaultCommand

public abstract class CommandBase extends AbstractCommand
The basic, synchronous, command base class for use with most commands.
  • Constructor Details

    • CommandBase

      public CommandBase(@Nonnull String name, @Nonnull String description)
      Constructor for a CommandBase instance.
      Parameters:
      name - The name of the command.
      description - The description of the command.
    • CommandBase

      public CommandBase(@Nonnull String name, @Nonnull String description, boolean requiresConfirmation)
      Constructor for a CommandBase instance.
      Parameters:
      name - The name of the command.
      description - The description of the command.
      requiresConfirmation - Whether the command requires additional confirmation.
    • CommandBase

      public CommandBase(@Nonnull String description)
      This constructor is specifically only for variant commands, added with AbstractCommand.addUsageVariant(AbstractCommand).
      Parameters:
      description - The description of the command.