sillerud / BungeeCord

BungeeCord, the 6th in a generation of server portal suites. Efficiently proxies and maintains connections and transport between multiple Minecraft servers.
http://www.spigotmc.org/threads/bungeecord.392/
Other
24 stars 25 forks source link

Use 1.7 Kick packets in InitialHandler where needed #16

Closed prplz closed 10 years ago

prplz commented 10 years ago

Ok so after a git mishap I have deleted and re pushed the branch. This is tested with online mode on both 1.6 and 1.7 with cancelling the login event. Below text copied from failed PR:

1.7 clients that are kicked in the initial stage are sent packets with 1.6 kick body, causing strange client messages rather than the ban reasons I wanted it to display.

I've attempted to add a 1.7 disconnect method to initial handler that sends a 1.7 kick packet to the client in all the 1.7 sections of the code. I'm unsure if this was the correct way to fix this but it seems to be working for cancelled login events for me.