This project uses Gradle.
- Clone this repository:
git clone https://github.com/OctoPvP/Commander
- Run
./gradlew build
, optionally addpublishToMavenLocal
if you would like to install it into your ~/.m2 (Maven cache) directory
To allow command argument names to work correctly, you need to pass -parameters
to your compiler
Alternatively, you can use the @Name annotation.
Maven:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<parameters>true</parameters>
</configuration>
</plugin>
</plugins>
Gradle (Groovy):
compileJava {
options.compilerArgs << '-parameters'
}
Gradle (KTS):
tasks.compileJava {
options.compilerArgs.add("-parameters")
}
Implementation | Link |
---|---|
Creating An Implementation | Here |
Bukkit | Here |
- Annotation based commands
- Dependency Injection in command methods
- Argument parsing into Objects through Providers
- Command suggestions
- Flags & Switches
- Customizable Messages
- Validators
See LICENSE