Class ProfileNamespaces
java.lang.Object
dev.rollczi.litecommands.argument.profile.ProfileNamespaces
Contains default argument profiles defined by LiteCommands-core.
- Since:
- 3.7.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArgumentProfileNamespace<FlagProfile> Flag profile allows passing boolean flags.static final ArgumentProfileNamespace<JoinProfile> Join profile allows joining multiple arguments into one.static final ArgumentProfileNamespace<LiteralProfile> Literal profile allows parsing static values such as/user Rollczi group Adminwheregroupis a literal.static final ArgumentProfileNamespace<NullableProfile> Nullable profile allows passing optional arguments.static final ArgumentProfileNamespace<QuotedProfile> Quoted profile allows passing arguments with spaces.static final ArgumentProfileNamespace<VarargsProfile> Varargs profile allows passing multiple arguments of the same type. -
Method Summary
-
Field Details
-
LITERAL
Literal profile allows parsing static values such as/user Rollczi group Adminwheregroupis a literal.- Since:
- 3.8.0
-
JOIN
Join profile allows joining multiple arguments into one.- Since:
- 3.7.0
-
NULLABLE
Nullable profile allows passing optional arguments. If the argument is not present, the value will be null.- Since:
- 3.7.0
-
VARARGS
Varargs profile allows passing multiple arguments of the same type. e.g./command arg1,arg2,arg3. The arguments are separated by a delimiter specified in the profile.- Since:
- 3.7.0
-
QUOTED
Quoted profile allows passing arguments with spaces. e.g./command "argument with spaces".- Since:
- 3.7.0
-
FLAG
Flag profile allows passing boolean flags. e.g./command --flag.- Since:
- 3.7.0
-