
Modrinth · Minecraft mod
Fabric Plugin Messaging
A standard library to send and receive plugin messages on a proxied network
Quick answer
Which Fabric Plugin Messaging release matches 1.21.2?
Fabric Plugin Messaging 1.0.0 targets 1.21.1, 1.21.2, 1.21.3 with Fabric. Do not install it on the client. It must be installed on the dedicated server. 1 required mod needs a matching file.
Where it goes
Is Fabric Plugin Messaging required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does Fabric Plugin Messaging 1.0.0 need?
1.0.0 on 1.21.2. Every mod below is checked against that same setup.
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Fabric Plugin Messaging without breaking your instance.
Built for Fabric Plugin Messaging 1.0.0 on 1.21.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.0. It targets 1.21.1, 1.21.2, 1.21.3 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.
About this project
What does Fabric Plugin Messaging add?
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 :)
Project description from Modrinth.
Pick your setup
Fabric Plugin Messaging by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.4
1 loader build1.21.3
1 loader build1.21.2
1 loader build1.21.1
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Fabric Plugin Messaging versions and loaders
1.0.0
FabricPluginMessaging-fabric-1.21.1-1.0.0.jar
25 Feb 2025
Looking for an older file? The official Modrinth project page is in Resources.
