Class PermissionLevelArgument
java.lang.Object
cloud.commandframework.arguments.CommandArgument<ICommandSender,PermissionLevel>
nl.pim16aap2.animatedarchitecture.spigot.core.comands.PermissionLevelArgument
- All Implemented Interfaces:
cloud.commandframework.keys.CloudKeyHolder<PermissionLevel>,Comparable<cloud.commandframework.arguments.CommandArgument<?,?>>
public class PermissionLevelArgument
extends cloud.commandframework.arguments.CommandArgument<ICommandSender,PermissionLevel>
An argument that parses a
PermissionLevel from a string.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classNested classes/interfaces inherited from class cloud.commandframework.arguments.CommandArgument
cloud.commandframework.arguments.CommandArgument.Builder<C,T>, cloud.commandframework.arguments.CommandArgument.TypedBuilder<C, T, B extends cloud.commandframework.arguments.CommandArgument.Builder<C, T>> -
Constructor Summary
ConstructorsConstructorDescriptionPermissionLevelArgument(boolean required, String name, @Nullable String defaultValue, @Nullable BiFunction<cloud.commandframework.context.CommandContext<ICommandSender>, String, List<String>> suggestionsProvider, @Nullable cloud.commandframework.ArgumentDescription defaultDescription, ILocalizer localizer, @Nullable PermissionLevel minimumLevel, @Nullable PermissionLevel maximumLevel) -
Method Summary
Methods inherited from class cloud.commandframework.arguments.CommandArgument
addPreprocessor, compareTo, copy, equals, getDefaultDescription, getDefaultValue, getKey, getName, getOwningCommand, getParser, getSuggestionsProvider, getValueType, hasDefaultValue, hashCode, isArgumentRegistered, isRequired, ofType, ofType, preprocess, setArgumentRegistered, setOwningCommand, toString
-
Constructor Details
-
PermissionLevelArgument
public PermissionLevelArgument(boolean required, String name, @Nullable @Nullable String defaultValue, @Nullable @Nullable BiFunction<cloud.commandframework.context.CommandContext<ICommandSender>, String, List<String>> suggestionsProvider, @Nullable @Nullable cloud.commandframework.ArgumentDescription defaultDescription, ILocalizer localizer, @Nullable @Nullable PermissionLevel minimumLevel, @Nullable @Nullable PermissionLevel maximumLevel) - Parameters:
minimumLevel- The minimum permission level (inclusive). Any permission levels lower than this are ignored. When null, no minimum is used.maximumLevel- The maximum permission level (inclusive). Any permission levels higher than this are ignored. When null, no maximum is used.
-
-
Method Details
-
builder
-