Back to mods
Fabric Plugin Messaging project artwork

Modrinth · Minecraft mod

Fabric Plugin Messaging

A standard library to send and receive plugin messages on a proxied network

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Fabric Plugin Messaging release matches 1.21.2?

Updated 1 year ago
Best match for your filters 1.0.0
Game version 1.21.1, 1.21.2, 1.21.3
Loader Fabric

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.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

1 required mod needs a matching file

Install Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

Fabric API Needed by Fabric Plugin Messaging 1.0.0
required
No matching file

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.

  1. 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.

  2. 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.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 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

Enviroment Server Discord

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.

4 available setups

Check 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 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.