- Tested Minecraft Versions:
- 1.7
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
What is it ?
BungeeMessagingAPI is a simple way to communicate with bungee-cord (classic channels and simplier Forward channel).
How to use it ?
First, remember to refer to this guide to know about the classic bungee channels and arguments.
You can get the code to include it in your plugin in the downloaded file.
Registering the API
Unregistering the APICode (Text):Plugin plugin = // your plugin instance
BungeeMessagingAPI api = new BungeeMessagingAPI(plugin);
Sending a messageCode (Text):api.terminate();
Code (Text):api.createBungeeOutMessage("Connect", "Notch", "server").send();Creating a listener to listen to messagesCode (Text):api.createBungeeOutForwardMessage("MyCustomChannel", "MyCustomArg1", "MyCustomArg2").send();
Code (Text):api.registerListener(new MyListener());BungeeInMessage contains the channel and the arguments (responses).Code (Text):public class MyListener implements BungeeMessagingListener
{
@Override
public void onBungeeMessage(BungeeInMessage message) {}
@Override
public void onForwardMessage(BungeeInForwardMessage message) {}
}
BungeeInForwardMessage contains the custom channel and the custom arguments.

BungeeMessagingAPI 1.0.0
Provides you a simple way to communicate with bungee-cord