Skip to content

Getting started

Roman Makeev edited this page Jan 30, 2023 · 4 revisions

Add as dependency

Currently I still did not resolved nexus publishing, so it's only avaliable on Github Packages

To add AstraLibs into your module you will need to add repository:

repositories {
  mavenCentral()
}

Add a ktx-core dependency to your project

This will allow you to use non-spigot utilities

implementation("ru.astrainteractive.astralibs:ktx-core:<version>")

Add a spigt-core dependency to your project

This will allow you to use spigot utilities

implementation("ru.astrainteractive.astralibs:spigot-core:<version>")

Getting started

Make AstraLibs remember your plugin

class MyPlugin: JavaPlugin(){
    override fun onEnable(){
        AstraLibs.rememberPlugin(this)
        Logger.setupWithSpigot("AstraLibsShowcase",this)
    }
}

That's it! Now you can use AstraLibs

Clone this wiki locally