Skip to content

Command Basics

To add this project as a dependency, include the code below in your pom.xml, build.gradle or build.gradle.kts file.

<dependency>
<groupId>dev.despical</groupId>
<artifactId>command-framework</artifactId>
<version>1.5.6</version>
</dependency>

This section outlines the essential parameters you can use to define commands within the Command Framework. Each parameter allows for customization of command behavior and usage.

ParameterTypeOptionalDescription
nameStringName of the command.
fallbackPrefixStringA prefix which is prepended to the command with a : one or more times to make the command unique.
permissionStringPermission required to execute the command.
aliasesString[]Alternative names for the command.
descStringBrief description of the command.
usageStringInstruction on how to use the command.
minIntegerMinimum number of required arguments.
maxIntegerMaximum number of allowed arguments.
onlyOpBooleanWhether only operator (op-ed) players can run this command.
asyncBooleanIf true, executes the command in a new thread to prevent main thread blockage.
senderTypeSenderTypeType of sender allowed (e.g., BOTH, PLAYER, CONSOLE).