Contents
Class PlayCommandBase
java.lang.Object
com.hypixel.hytale.server.core.command.system.AbstractCommand
com.hypixel.hytale.server.core.command.system.basecommands.CommandBase
com.hypixel.hytale.server.core.modules.singleplayer.commands.PlayCommandBase
- Direct Known Subclasses:
PlayFriendCommand, PlayLanCommand, PlayOnlineCommand
Abstract base class for play 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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(CommandSender sender) Determines whether the givenCommandSenderhas permission to execute this command.Methods 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, getUsageString, getVariantByArgCount, getVariantCommands, hasBeenRegistered, isVariant, matches, putRecursivePermissionGroups, requireNoPermission, requirePermission, requirePermission, setAllowsExtraArguments, setOwner, withDefaultArg, withDefaultArg, withFlagArg, withListDefaultArg, withListOptionalArg, withListRequiredArg, withOptionalArg, withOptionalArg, withRequiredArg, withRequiredArg
-
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.
-