I recommend using adventure over the bukkit version of this lib.

MF-MSG now supports Kyori's Adventure. Which allows you to use the lib on many other platforms and has all the benefits of using Adventure.

You need to add the dependency to your build.gradle.

repositories {
    maven { url = '' }

dependencies {
    implementation "me.mattstudios:triumph-msg-adventure:{version}" // Replace version here 

In order to include the lib in your project, you need to add shadowJar plugin build.gradle. Replace [YOUR PACKAGE]with your plugin's package, for example me.myplugin.plugin.

apply plugin: 'com.github.johnrengelman.shadow'

shadowJar {
   relocate 'me.mattstudios.msg', '[YOUR PACKAGE].mfmsg'

Using it

There are some major diferences between the bukkit version and this version of the lib. For starters, you use AdventureMessage instead of BukkitMessage. The lib also just parses the text to an Adventure component. You will have to use Adventure to make it into a BossBar, Title or SubTitle. You will also have to use Adventure's audiences to deliver the messages.

final AdventureMessage message = AdventureMessage.create();

Last updated