<a href="https://central.sonatype.com/artifact/eu.koboo/messagetags-api"> <img src="https://img.shields.io/maven-central/v/eu.koboo/messagetags-api?label=messagetags-api&color=green&logo=apachemaven" alt="IMG"> </a> <a href="https://central.sonatype.com/artifact/eu.koboo/messagetags-plugin"> <img src="https://img.shields.io/maven-central/v/eu.koboo/messagetags-plugin?label=messagetags-plugin&color=green&logo=apachemaven" alt="IMG"> </a>
MessageTags parses your text, styles and formats it according to its syntax, which is similar to HTML/XML tags. It's as a shadeable library and as a standalone server plugin for Hytale.
Basically, a MiniMessage clone for Hytale.
<a href="https://www.curseforge.com/hytale/mods/messagetags"> <img src="https://img.shields.io/curseforge/dt/1458950?logo=curseforge&label=downloads" alt="IMG"> </a> <a href="https://discord.koboo.eu/"> <img src="https://img.shields.io/discord/1021053609359708211?logo=discord?color=purple" alt="IMG"> </a>
| Text format, style and tags | MessageTags | Others |
|---|---|---|
| Colors | ✅ | ✅ |
| Color gradients | ✅ | ⚠️ |
| Color transitions | ✅ | ❌ |
| Embedding clickable links | ✅ | ✅ |
| Formatting (bold, monospace, underline, italic, reset) | ✅ | ✅ |
| Client-side translations | ✅ | ❌ |
| Server-side translations | ❌ | ❌ |
| Inlining legacy color codes | ✅ | ⚠️ |
| Inserting linebreaks | ✅ | ❌ |
| Availability | ||
| Maven library support | ✅ | ❌ |
| Standalone plugin support | ✅ | ✅ |
| Extensibility | ||
| Implement custom TagHandlers | ✅ | ⚠️ |
| Register custom NamedColors | ✅ | ⚠️ |
| Add placeholders (raw, parseable, embedded) | ✅ | ⚠️ |
| Text stripping (remove format, style and color) | ✅ | ⚠️ |
Add dependency
````kotlin dependencies { // To include the library in your plugin: implementation("eu.koboo:messagetags-api:1.3.0")
// Or to use the standalone plugin: compileOnly("eu.koboo:messagetags-plugin:1.3.0") }
``
Add manifest dependency (plugin-only)
````json { "Dependencies": { "Koboo:MessageTags": "*" } }
``
Parse text to Message
````java Message message = MessageTags.parse("<bold><red>Hello World!</red></bold>"); // Output: bold + red "Hello World!"
``
Strip text to Message
````java Message message = MessageTags.strip("<bold><red>Hello World!</red></bold>"); // Output: "Hello World!"
``
Development:
Projects:
Maven:
0 Comments