Cuberite Forum
Send packets to player - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Send packets to player (/thread-1519.html)

Pages: 1 2


RE: Send packets to player - NiLSPACE - 08-21-2014

Mods would probably work with one protocol as well, so it doesn't really matter. A plugin could possibly even get multiple functions for multiple protocols. Is there a way for plugins to get the protocol version exept for the OnLogin hook?


RE: Send packets to player - LO1ZB - 08-21-2014

(08-21-2014, 01:15 AM)STR_Warrior Wrote: Mods would probably work with one protocol as well, so it doesn't really matter. A plugin could possibly even get multiple functions for multiple protocols. Is there a way for plugins to get the protocol version exept for the OnLogin hook?

Why not catching the protocol version of the players in an array?


RE: Send packets to player - NiLSPACE - 08-21-2014

Because that array is destroyed when the plugin is reloaded.


RE: Send packets to player - xoft - 08-21-2014

You could simply send the version in the packet callback.


RE: Send packets to player - NiLSPACE - 08-21-2014

That could work as well.


RE: Send packets to player - SamJBarney - 08-21-2014

I thought we were moving to supporting only one protocol.


RE: Send packets to player - NiLSPACE - 08-21-2014

No we were only planning on removing 1.2 - 1.6 support if I remember correctly. 1.7 is nice to have since it takes a while for LiteLoader and WorldEditCUI to be updated.