LOOHP / Limbo

Standalone Limbo Minecraft Server (Currently 1.21.3)
http://ci.loohpjames.com/job/Limbo/
Apache License 2.0
239 stars 29 forks source link

Is it possible to listen to bungeecord plugin messages? #66

Open apollyon600 opened 11 months ago

apollyon600 commented 11 months ago

Using spigot's api, it would be:

this.getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
this.getServer().getMessenger().registerIncomingPluginChannel(this, "BungeeCord", this);

I was wondering using Limbo's api if I can register incoming and outgoing plugin messages with BungeeCord?

Timongcraft commented 7 months ago

You don't need to register plugin message, just send/receive them.

You can simply send them on the player. (Player#sendPluginMessage(Key channel, byte[] data)) You can receive plugin messages in the PluginMessageEvent. (Event handling is like Bukkit's)