Getting Started
Overview
Create a 'libs' folder in your plugin
Drag the Universal Chat Plugin jar into the libs folder
Tweak build.gradle.ks
Import UniversalChatAPI
Create libs folder
In the root directory of your plugin create a libs folder

Add Universal Chat Jar
Download Universal Chat, and place the plugin file into the newly created libs folder

Build File Tweaking
Navigate to build.gradle.kts and add the following code under 'dependencies' Find the latest version here, where it says "The Developer Guide is made for...."
implementation(files("libs/UniversalChat-{version}.jar"))
Full Example:
dependencies {
compileOnly("org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation(files("libs/UniversalChat-{version}.jar"))
}
Import Universal Chat's API
Import Universal Chat using the following code
import org.universaldevelopment.universalChat.API.UniversalChatAPI
Notes
Once complete, the Universal Chat jar will be bundled with your plugin, however it will not function without the Universal Chat installed in the plugins directory.
Last updated