FlyLib Reloaded is a powerful and useful Java/Kotlin library for the Minecraft Paper.
- command/config engine
- builders and utilities for Bukkit
- advanced event flow manager
- easy to use
Replace [version]
with the version you want to use.
Gradle Kotlin DSL
Using shadowJar, you can generate a Jar file with all dependencies, including the Kotlin runtime.
plugins {
id("com.github.johnrengelman.shadow") version "6.0.0"
}
dependencies {
implementation("dev.kotx:flylib-reloaded:[version]")
}
Configure relocation to be done at build time to avoid conflicts when loading multiple plugins that use FlyLib Reloaded.
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
val relocateShadow by tasks.registering(ConfigureShadowRelocation::class) {
target = tasks.shadowJar.get()
prefix = project.group.toString()
}
tasks.shadowJar {
dependsOn(relocateShadow)
}
Gradle
Using shadowJar, you can generate a Jar file with all dependencies, including the Kotlin runtime.
plugins {
id 'com.github.johnrengelman.shadow' version '6.0.0'
}
dependencies {
implementation 'dev.kotx:flylib-reloaded:[version]'
}
Configure relocation to be done at build time to avoid conflicts when loading multiple plugins that use FlyLib Reloaded.
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
task relocateShadow(type: ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = project.group
}
tasks.shadowJar.dependsOn tasks.relocateShadow