Contents
Class SetGroupCommand
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.permissions.commands.SetGroupCommand
/setgroup [group] - set your own group
/setgroup [group] [player] - set another player's group
-
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 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
-
SetGroupCommand
public SetGroupCommand()
-
-
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.
-