Package me.internalizable.numdrassl.api.plugin.messaging


package me.internalizable.numdrassl.api.plugin.messaging
Plugin messaging API for communication between the proxy and backend servers.

This package provides the infrastructure for sending and receiving custom plugin messages through registered channels. This is commonly used by plugins like LuckPerms to synchronize data between the proxy and backend servers.

Key Components

Example Usage

// Create and register a channel
ChannelIdentifier channel = ChannelIdentifier.create("myplugin", "sync");
proxy.getChannelRegistrar().register(channel);

// Listen for messages
@Subscribe
public void onPluginMessage(PluginMessageEvent event) {
    if (event.getIdentifier().equals(channel)) {
        byte[] data = event.getData();
        // Process the message
    }
}

// Send a message to a server
server.sendPluginMessage(channel, data);
See Also: