Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teamkun/commandlib


https://github.com/teamkun/commandlib

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

[![](https://jitpack.io/v/TeamKun/CommandLib.svg)](https://jitpack.io/#TeamKun/CommandLib)

## Getting Started

### Installation(Gradle Settings)

Bukkit

```groovy
plugins {
id "com.github.johnrengelman.shadow" version "6.1.0"
}

repositories {
maven { url 'https://jitpack.io' }
}

dependencies {
implementation "com.github.TeamKun.CommandLib:bukkit:latest.release"
}

shadowJar {
mergeServiceFiles()
archiveFileName = "${rootProject.name}-${project.version}.jar"
relocate "net.kunmc.lab.commandlib", "${project.group}.${project.name.toLowerCase()}.commandlib"
}
tasks.build.dependsOn tasks.shadowJar
```

Forge

```groovy
plugins {
id "com.github.johnrengelman.shadow" version "6.1.0"
}

repositories {
maven { url 'https://jitpack.io' }
}

dependencies {
implementation "com.github.TeamKun.CommandLib:forge:latest.release"
}

shadowJar {
mergeServiceFiles()
archiveFileName = "${rootProject.name}-${project.version}.jar"
dependencies {
include(dependency("com.github.TeamKun.CommandLib:forge:.*"))
}
relocate "net.kunmc.lab.commandlib", "${project.group}.${project.name.toLowerCase()}.commandlib"
finalizedBy("reobfShadowJar")
}

reobf {
shadowJar {
}
}
```

### Sample Code

[Bukkit](/sample/bukkit/src/main/java/net/kunmc/lab/sampleplugin)
[Forge](/sample/forge/src/main/java/net/kunmc/lab/samplemod)