How do I transfer a player if their protocol version is below the current one (113)? I have tried sending it when the server receives the login packet but it says the server has attempted to send TransferPacket too early. Any ideas?
I also have a question with packets. Is there a way to send a packet from Server1 to server2 using sockets?
Why not just use a TransferPacket? Using sockets to transfer a player when there is already a method is time consuming and complicated.
I have tried doing so on my own fork but it simply shows the "Disconnected from Server" message - on the console it says "logged out due to transfer" Server uses Player::close() event when it shows the outdated server message - does it still fire kick event?
Have you read the comment on that function? Anyway, you can try sending the packet on PlayerLoginEvent. PHP: /** @var PlayerLoginEvent $event */$event->getPlayer()->transfer("forums.pmmp.io");
Protip: The time you might spend to make a proxy that prevents the use of TransferPacket will be greater than the grand total sum of the time people spend waiting for the several seconds of lag + several tens of seconds of building terrain because they received a TransferPacket on your server. Now stop getting off-topic.
If you read above then you would have known I want to transfer an outdated client. The player is already kicked before PlayerLoginEvent is fired. @dktapps Any ideas?
Now PMMP is not handling the BatchPackets from 1.0.7 clients. Any way to handle them and then transfer them to another server?