Skip to content

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:

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.

<repository>
    <id>repsy</id>
    <url>https://repo.repsy.io/mvn/scaredrabbit/scaredsmods</url>
</repository>
<dependency>
    <groupId>io.github.scaredsplugins</groupId>
    <artifactId>SubCommandLib</artifactId>
    <version>VERSION</version>
</dependency>

VERSION & ```can either be found on curseforge or on repsy

Adding Subcommands

To do that, we need to do a few things: