-
-
Notifications
You must be signed in to change notification settings - Fork 5
Command basics
Berke Akçen edited this page Apr 29, 2021
·
19 revisions
The project isn't in the Central Repository yet, so specifying a repository is needed.
To add this project as a dependency to your project, add the following to your pom.xml:
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.Despical</groupId>
<artifactId>CommandFramework</artifactId>
<version>1.0.1</version>
<scope>compile</scope>
</dependency>
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly group: "com.github.Despical", name: "CommandFramework", version: "1.0.1";
}
Parameter | Return Type | Optional | Description |
---|---|---|---|
name | String | FALSE | Name of the command |
permission | String | TRUE | Permission of the command |
aliases | String Array | TRUE | Aliases of the command |
desc | String | TRUE | Description of the command |
usage | String | TRUE | Usage of the command |
min | Integer | TRUE | Minimum length of required arguments |
max | Integer | TRUE | Maximum length of required arguments |
cooldown | Integer | TRUE | Time between using command again |
senderType | SenderType | TRUE | Type of sender eg. BOTH, PLAYER CONSOLE |