Contents
Class PlayCommand
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.modules.singleplayer.commands.PlayCommand
A command collection for play-related commands that toggle server access.
-
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
ConstructorsConstructorDescriptionPlayCommand(SingleplayerModule singleplayerModule) Default Constructor for aPlayCommandinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(CommandSender sender) Determines whether the givenCommandSenderhas permission to execute this command.Methods inherited from class AbstractCommandCollection
getFullUsage, getUsageString, isNoArgVariantMethods inherited from class AbstractAsyncCommand
runAsyncMethods inherited from class AbstractCommand
acceptCall, addAliases, addSubCommand, addUsageVariant, completeRegistration, countParents, getAliases, getDescription, getFullyQualifiedName, getName, getOptionalArgument, getOptionalArguments, getOwner, getPermission, getPermissionGroups, getPermissionGroupsRecursive, getRequiredArguments, getSubCommand, getSubCommands, getSuggestionOverrides, getUsageShort, getVariantByArgCount, getVariantCommands, hasBeenRegistered, isVariant, matches, putRecursivePermissionGroups, requireNoPermission, requirePermission, requirePermission, setAllowsExtraArguments, setOwner, withDefaultArg, withDefaultArg, withFlagArg, withListDefaultArg, withListOptionalArg, withListRequiredArg, withOptionalArg, withOptionalArg, withRequiredArg, withRequiredArg
-
Constructor Details
-
PlayCommand
Default Constructor for aPlayCommandinstance.- Parameters:
singleplayerModule- The singleplayer module to use.
-
-
Method Details
-
hasPermission
Description copied from class:AbstractCommandDetermines whether the givenCommandSenderhas permission to execute this command.- Overrides:
hasPermissionin classAbstractCommand- Parameters:
sender- The sender to check permission for.- Returns:
trueif the sender has permission,falseotherwise.
-