Use in your project:
- Step 1:
Clone this project and build it -
gradle clean buildor go to https://github.com/Core-Pluginss/HytaleBase/releases and download the latest - Step 2:
In your plugin's
build.gradle.ktsmodify the repositories and dependencies:
repositories {
mavenCentral()
mavenLocal() // <-- Add this
// ... All your other repositories
}
dependencies {
// No need for HytaleServer.jar, its included in HytaleBase.
implementation("core.tastycake:hytale-base:lts") // <-- Add this
// or
implementation(files("path/to/jar"))
// ... All your other dependencies
}- Step 3: In your plugin's
setup()method add the base initialization:
// Java
@Override
protected void setup() {
HytaleBase.Companion.init(this); // <-- Add this
// ... The rest of your code
}// Kotlin
override fun setup() {
HytaleBase.init(this); // <-- Add this
// ... The rest of your code
}