Uses of Class
dev.ua.theroer.magicutils.commands.CommandArgument.Builder
Packages that use CommandArgument.Builder
-
Uses of CommandArgument.Builder in dev.ua.theroer.magicutils.commands
Methods in dev.ua.theroer.magicutils.commands that return CommandArgument.BuilderModifier and TypeMethodDescriptionstatic CommandArgument.BuilderCreates a builder for CommandArgument.CommandArgument.Builder.compareMode(CompareMode mode) Sets comparison strategy for permission checks.CommandArgument.Builder.contextArgs(String... contextArgs) Adds names of arguments whose parsed values should be available as context for suggestions.CommandArgument.Builder.defaultValue(String defaultValue) Sets the default value for the argument.CommandArgument.Builder.greedy()Marks this argument as greedy (consume remaining input).CommandArgument.Builder.includeArgumentSegment(boolean include) Controls whether to include ".argument." segment in generated node.CommandArgument.Builder.markPermissionDeclared()Explicitly mark that a permission annotation exists even if value is empty.Defines named options for this argument.Defines named options for this argument.CommandArgument.Builder.optional()Sets the argument as optional.CommandArgument.Builder.permission(String permission) Sets the required permission for the argument.CommandArgument.Builder.permissionCondition(PermissionConditionType condition) Sets structured permission condition.CommandArgument.Builder.permissionCondition(String condition) Deprecated.CommandArgument.Builder.permissionConditionArgs(String[] args) Sets arguments used in the permission condition.CommandArgument.Builder.permissionDefault(MagicPermissionDefault defaultValue) Sets default permission state.CommandArgument.Builder.permissionMessage(String message) Sets the permission denied message for the argument.CommandArgument.Builder.permissionNode(String node) Overrides generated permission node segment.CommandArgument.Builder.sender(AllowedSender[] allowed) Mark this parameter as the executing sender and restrict allowed sender types.CommandArgument.Builder.suggestionHost(Object suggestionHost) Sets the object on which@Suggest("methodName")provider methods resolve.CommandArgument.Builder.suggestions(String... suggestions) Adds suggestions for the argument.CommandArgument.Builder.suggestions(List<String> suggestions) Adds suggestions for the argument.