Class ResolvedCommandSchema
java.lang.Object
dev.ua.theroer.magicutils.commands.ResolvedCommandSchema
Public immutable view of a registered command and its resolved actions.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedCommandSchema(String name, String description, List<String> aliases, String permission, MagicPermissionDefault permissionDefault, ResolvedCommandAction directAction, ResolvedSubCommandNode subCommands) Creates a new resolved command schema. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the command aliases.Returns the command description.Returns the direct action for the root command.name()Returns the command name.Returns the required permission node.Returns the default permission state.Returns all root labels (name + aliases) for this command.Returns the subcommand tree.
-
Constructor Details
-
ResolvedCommandSchema
public ResolvedCommandSchema(String name, String description, List<String> aliases, String permission, MagicPermissionDefault permissionDefault, ResolvedCommandAction directAction, ResolvedSubCommandNode subCommands) Creates a new resolved command schema.- Parameters:
name- command namedescription- command descriptionaliases- command aliasespermission- required permissionpermissionDefault- default permission statedirectAction- action for the root command (can be null)subCommands- subcommand tree
-
-
Method Details
-
name
-
description
-
aliases
-
permission
-
permissionDefault
Returns the default permission state.- Returns:
- default permission
-
directAction
Returns the direct action for the root command.- Returns:
- direct action or null
-
subCommands
-
rootLabels
-