Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
apollyon600 opened this issue Dec 15, 2023 · 1 comment
Open

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

apollyon600 opened this issue Dec 15, 2023 · 1 comment

Comments

@apollyon600
Copy link

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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants