Class CommandSpec<S>
java.lang.Object
dev.ua.theroer.magicutils.commands.CommandSpec<S>
- Type Parameters:
S- sender type
Compatibility command specification used by the legacy builder path.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for compatibility command specifications. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns configured aliases.Returns the argument definitions.static <S> CommandSpec.Builder<S> Creates a compatibility builder for a command name.Returns the command description.executor()Returns the execution handler.name()Returns the primary command name.Returns the explicit permission node.Returns the default permission value.Returns subcommand specs.Returns the threading policy for execution.
-
Method Details
-
name
-
description
-
aliases
-
permission
Returns the explicit permission node.- Returns:
- permission string or empty when unset
-
permissionDefault
Returns the default permission value.- Returns:
- default permission enum
-
threading
Returns the threading policy for execution.- Returns:
- threading policy
-
arguments
Returns the argument definitions.- Returns:
- immutable argument list
-
executor
-
subCommands
Returns subcommand specs.- Returns:
- immutable subcommand list
-
builder
Creates a compatibility builder for a command name.- Type Parameters:
S- sender type- Parameters:
name- command name- Returns:
- new builder instance
-