SubCommandLib
Getting started
What are subcommands you might ask? Subcommands are commands that are registered after a main, central command. Think of them as arguments of a command that are a commands themselves.
Ex: /deluxehub reload
To get started with subcommand lib you need to either do 1 or 2 depending on your build system:
- Maven
- Gradle
<repository>
<id>repsy</id>
<url>https://repo.repsy.io/mvn/scaredrabbit/scaredsplugins</url>
</repository>
<dependency>
<groupId>io.github.scaredsplugins</groupId>
<artifactId>SubCommandLib</artifactId>
<version>VERSION</version>
</dependency>
In your build.gradle
//This should be at the top repository block
maven {
url "https://repo.repsy.io/mvn/scaredrabbit/scaredsplugins"
}
//This should be in the dependencies block of your build.gradle
modImplementation "io.github.scaredsplugins:SubCommandLib:${project.subcommandlib_version}"
In your gradle.properties
subcommandlib_version = VERSION
Note:
${project.subcommandlib_version}
Is completely optional and is not neccessary at all, just for convenience of easier version swapping.