Class GenericChildCommand
java.lang.Object
me.lucko.luckperms.common.command.abstraction.GenericChildCommand
- Direct Known Subclasses:
MetaAddChatMeta,MetaAddTempChatMeta,MetaClear,MetaInfo,MetaRemoveChatMeta,MetaRemoveTempChatMeta,MetaSet,MetaSetChatMeta,MetaSetTemp,MetaSetTempChatMeta,MetaUnset,MetaUnsetTemp,ParentAdd,ParentAddTemp,ParentClear,ParentClearTrack,ParentInfo,ParentRemove,ParentRemoveTemp,ParentSet,ParentSetTrack,PermissionCheck,PermissionClear,PermissionInfo,PermissionSet,PermissionSetTemp,PermissionUnset,PermissionUnsetTemp,UserSwitchPrimaryGroup
A sub command which can be be applied to both groups and users.
This doesn't extend the other Command or SubCommand classes to avoid generics hell.
-
Constructor Summary
ConstructorsConstructorDescriptionGenericChildCommand(CommandSpec spec, String name, CommandPermission userPermission, CommandPermission groupPermission, Predicate<? super Integer> argumentCheck) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidexecute(LuckPermsPlugin plugin, Sender sender, PermissionHolder target, ArgumentList args, String label, CommandPermission permission) getArgs()net.kyori.adventure.text.ComponentgetName()getSpec()booleanisAuthorized(Sender sender, HolderType type) voidsendDetailedUsage(Sender sender) voidtabComplete(LuckPermsPlugin plugin, Sender sender, ArgumentList args)
-
Constructor Details
-
GenericChildCommand
public GenericChildCommand(CommandSpec spec, String name, CommandPermission userPermission, CommandPermission groupPermission, Predicate<? super Integer> argumentCheck)
-
-
Method Details
-
execute
public abstract void execute(LuckPermsPlugin plugin, Sender sender, PermissionHolder target, ArgumentList args, String label, CommandPermission permission) throws CommandException - Throws:
CommandException
-
tabComplete
-
getSpec
-
getName
-
getUserPermission
-
getGroupPermission
-
getArgumentCheck
-
sendUsage
-
sendDetailedUsage
-
isAuthorized
-
getDescription
public net.kyori.adventure.text.Component getDescription() -
getArgs
-