
Fabric Plugin Messaging
A standard library to send and receive plugin messages on a proxied network
About this Mod
Fabric Plugin Messaging
A Fabric plugin messaging library! This server-sided mod will register a Plugin Message Packet (PluginMessagePacket.class) and a Plugin Message Event (PluginMessageEvent#EVENT) for developers to use in their projects.
Without this mod, developers would need to register their own packets, which would cause conflicts if multiple are present at the same time. By using the Packet and Listener provided here, this issue is avoided.
Developer Info
Add the mod as a dependency in your gradle build script! This will include the API in your final build.
dependencies {
modImplementation(include("com.pokeskies:fabricpluginmessage:1.0.0"))
}
Sending
Then you can send Plugin Messages by creating an instance of the PluginMessagePacket class and then sending it! You can either create it by passing a byte array or a FriendlyByteBuf:
ByteArrayDataOutput outputStream = ByteStreams.newDataOutput();
outputStream.writeUTF("Connect");
outputStream.writeUTF("cobblemon");
ServerPlayNetworking.send(player, new PluginMessagePacket(outputStream.toByteArray()));
Receiving
If you need to receive a Plugin Message from the proxy, you can subscribe to the PluginMessageEvent:
PluginMessageEvent.EVENT.register((payload, context) -> {
ByteArrayDataInput inputStream = ByteStreams.newDataInput(payload.getData());
String channel = inputStream.readUTF();
if (channel.equals("GetServers")) {
String serversList = inputStream.readUTF();
System.out.println("Proxy Servers: " + serversList);
}
});
Support
A community support Discord has been opened up for all Skies Development related projects! Feel free to join and ask questions or leave suggestions :)
Available Versions
How to Install Fabric Plugin Messaging on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.4).
Install Mod
Open the mod browser in the dashboard and search for "Fabric Plugin Messaging". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.4, 1.21.3, 1.21.2 (+1 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Fabric Plugin Messaging 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 (1.21.4). You can switch loaders with one click in the panel.
Is Fabric Plugin Messaging compatible with fabric?
Fabric Plugin Messaging officially supports fabric for Minecraft 1.21.4, 1.21.3, 1.21.2. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Fabric Plugin Messaging – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Fabric Plugin Messaging 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.
Similar Mods
Rent Modded Server
Install Fabric Plugin Messaging with just one click on your server.
