UNIVERSAL DEVELOPMENT
Join Discord [Click Here]
  • 🗨️UniversalChat
    • Installation
    • Commands
    • Permissions
    • Designing Your Chat
    • Customising Translation
    • Quick Chat (Shortcuts)
    • Server Guide
    • Profanity Filter
    • Message Of The Day (MOTD)
    • Polls
    • Autocorrect
    • Command Auto Complete
    • Developer Guide
      • Getting Started
      • Translation
      • Check For Profanity & Hate Speech
      • Create Summary Of Text
      • Server Guide
      • Autocorrect
      • Parsing Colors
    • Credits
  • 👜Modular Backpacks
    • Installation
    • Commands
    • Permissions
    • Changing backpack prices
Powered by GitBook
On this page
  • Create libs folder
  • Add Universal Chat Jar
  • Build File Tweaking
  • Import Universal Chat's API
  • Notes
  1. UniversalChat
  2. Developer Guide

Getting Started

PreviousDeveloper GuideNextTranslation

Last updated 1 month ago

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'

implementation(files("libs/UniversalChat-1.13.0_Beta_4.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-1.13.0_Beta_4.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.

🗨️