Contents
Class UpdateCommand
java.lang.Object
com.hypixel.hytale.server.core.command.system.AbstractCommand
com.hypixel.hytale.server.core.command.system.basecommands.AbstractAsyncCommand
com.hypixel.hytale.server.core.command.system.basecommands.AbstractCommandCollection
com.hypixel.hytale.server.core.update.command.UpdateCommand
Command collection for server update management.
Usage:
- /update check - Check for available updates
- /update download - Download available update to staging
- /update apply --confirm - Apply staged update and restart
- /update cancel - Cancel/delete staged update
- /update status - Show current version and update status
- /update patchline [name] - Show or set the update patchline
- /update setup - Extract wrapper scripts from JAR to parent directory
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCommand
AbstractCommand.SuggestionOverrideEntry -
Field Summary
Fields inherited from class AbstractCommand
EMPTY_STRING_ARRAY, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptCall(CommandSender sender, ParserContext parserContext, ParseResult parseResult) Executes a subcommand, variant, or itself, after accepting aParserContextfrom theTokenizerand converting that raw data into aCommandContextthat the executing command can use.Methods inherited from class AbstractCommandCollection
getFullUsage, getUsageString, isNoArgVariantMethods inherited from class AbstractAsyncCommand
runAsyncMethods inherited from class AbstractCommand
addAliases, addSubCommand, addUsageVariant, completeRegistration, countParents, getAliases, getDescription, getFullyQualifiedName, getName, getOptionalArgument, getOptionalArguments, getOwner, getPermission, getPermissionGroups, getPermissionGroupsRecursive, getRequiredArguments, getSubCommand, getSubCommands, getSuggestionOverrides, getUsageShort, getVariantByArgCount, getVariantCommands, hasBeenRegistered, hasPermission, isVariant, matches, putRecursivePermissionGroups, requireNoPermission, requirePermission, requirePermission, setAllowsExtraArguments, setOwner, withDefaultArg, withDefaultArg, withFlagArg, withListDefaultArg, withListOptionalArg, withListRequiredArg, withOptionalArg, withOptionalArg, withRequiredArg, withRequiredArg
-
Constructor Details
-
UpdateCommand
public UpdateCommand()
-
-
Method Details
-
acceptCall
@Nullable public CompletableFuture<Void> acceptCall(@Nonnull CommandSender sender, @Nonnull ParserContext parserContext, @Nonnull ParseResult parseResult) Description copied from class:AbstractCommandExecutes a subcommand, variant, or itself, after accepting aParserContextfrom theTokenizerand converting that raw data into aCommandContextthat the executing command can use.- Overrides:
acceptCallin classAbstractCommand- Parameters:
sender- TheCommandSenderthat sent the initial command.parserContext- AParserContextcreated from theTokenizer.parseResult- The non-failed parse result that will store error data occurring during the command.- Returns:
- A
CompletableFuture<Void>to be run asynchronously, or null.
-