Skip to content

Getting started

Roman Makeev edited this page Nov 20, 2022 · 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 MuPlugin: JavaPlugin(){
    override fun onEnable(){
        AstraLibs.rememberPlugin(this)
        Logger.prefix = "AstraTemplate
    }
}

That's it! Now you can use AstraLibs

Clone this wiki locally