message-api

Fabric message api for translatable, configurable and colorful messages with placeholders

by
2.7K Downloads
fabricquiltlibrary
Rent Server with this Mod

About this Mod

message-api

A simple server-side message API for Fabric. It allows for translatable messages, with text parsing
using PlaceholderAPI
, which can be customized with ease by end users.

Features

  • Special text parsing with PlaceholderAPI
  • Easy customizable in-game messages
  • Language localization support
  • Easy to integrate

Usage

Adding the dependency

To use message-api in your mod, add the following to your build.gradle file:

Message-api doesn't bundle placeholder-api, you have to bundle a compatible of it as well.
Replace [TAG] with the respective versions.

repositories {
    maven { url "https://maven.nucleoid.xyz/" }
    maven { url "https://api.modrinth.com/maven" }
}

dependencies {
    include(modImplementation("maven.modrinth:message-api:[TAG]"))
    include(modImplementation("eu.pb4:placeholder-api:[TAG]"))
}

Adding messages

Create a messages folder in your resource folder. Create a JSON file with
the language code you would like to add, like
the testmod example.
Add your message to the file (make sure to prefix the message id with your mod id, to avoid conflicts).

Creating messages

Use any of the provided methods in LocalizedMessage to get your text instance,
which works like any other vanilla text instance!

ServerPlayerEntity player;
player.sendMessageToClient(LocalizedMessage.localized("modid.some.message.id"));
Official Mojang Mappings
ServerPlayer player;
player.sendSystemMessage(LocalizedMessage.localized("modid.some.message.id"));

User configuration

To change messages, edit the JSON file in ./config/<modid>/<languageid>.json. This will change the language file for
the mod with the specified modid.

Credits

Special thanks to PlaceholderAPI for providing the parsing functionality.

Available Versions

message-api 0.3.5+26.1release
MC 26.1, 26.1.1, 26.1.2fabric, quilt
March 25, 2026
message-api 0.3.5+1.21.11release
MC 1.21.11fabric, quilt
February 5, 2026
message-api 0.3.5+1.21.8release
MC 1.21.8fabric, quilt
February 5, 2026
message-api 0.3.5+1.21.4release
MC 1.21.4fabric, quilt
February 5, 2026
message-api 0.3.5+1.21.1release
MC 1.21.1fabric, quilt
February 5, 2026

How to Install message-api on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).

3

Install Mod

Open the mod browser in the dashboard and search for "message-api". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricquilt

Minecraft Versions

26.1.2, 26.1.1, 26.1 (+14 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

message-api server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.

Is message-api compatible with fabric and quilt?

message-api officially supports fabric, quilt for Minecraft 26.1.2, 26.1.1, 26.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with message-api – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if message-api consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install message-api with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

26.1.226.1.126.11.21.111.21.101.21.91.21.81.21.71.21.61.21.6-rc1+7 more