Hello, I made this ui and made it execute a cmd ( $command = "lobby ruby"; $this->owner->getServer()->getCommandMap()->dispatch($event->getPlayer(), $command); ) and in the lobby plugin the ip/port are correct but then when we try to transfer with the ui you just get disconnected. (Using /loby ruby works). Theres no errors it just says this " logged out due to transfer"
It's due to a bug in RakLib. Please rollback your RakLib version to commit 1830bb757d21d878bcb8f76c10087528440e93a8, or update to the newest version on GitHub.
I'm also having this issue. If I send the transfer packet inside PlayerJoinEvent, the player gets kicked rather than being transferred. Even if I delay it for a couple seconds, sometimes the player is kicked rather than transferred. My reason for doing this is I want to send players to a different server depending on the IP they join with, so I collect the IP from the LoginPacket and then wait for PlayerJoinEvent to send them.
if you're delaying it with a delayed task for example, you should be good, if you have the latest version as dktapps stated above.
I actually forgot a critical piece of information. It seems to work fine for Windows 10 edition, but pocket edition clients are kicked.