Skip to content

FlyLib Reloaded is a powerful and useful Java/Kotlin library for the Minecraft Paper.

License

Notifications You must be signed in to change notification settings

TeamKun/flylib-reloaded

Repository files navigation

Logo

FlyLib Reloaded

FlyLib Reloaded is a powerful and useful Java/Kotlin library for the Minecraft Paper.
⚠️ It's still work in progress. API will be changed or removed without notice.

🔥 Features

  • command/config engine
  • builders and utilities for Bukkit
  • advanced event flow manager
  • easy to use

📎 Links

⚙️ Installation

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