ProxioDev / ValioBungee

Synchronize players data between BungeeCord / Velocity proxies
Eclipse Public License 1.0
191 stars 50 forks source link

How to send plugin message to other Proxy in Bukkit #100

Open SheerYin opened 2 months ago

SheerYin commented 2 months ago

Your question?

For example, if I have agents bungee-1 and bungee-2 and enter player1 and player2 respectively, then player1 sends plug-in messages such as

output.writeUTF("Message")
output.writeUTF("player2")
output.writeUTF("hi")
player1.sendPluginMessage()

player2 will not receive

Or do I need to create a plug-in in Bungee and call RedisBungee to subscribe to the channel?

ham1255 commented 2 months ago

https://github.com/ProxioDev/ValioBungee/wiki/API#plugin-messaging-bukkit-or-any-downstream-server has no player sending message support, you have to implement this yourself

btw in 0.13.0 will be new plugin message system that use classes to help writing your own implementation easily

SheerYin commented 2 months ago

Maybe we should wait for a more complete implementation in the new version