Separate names with a comma.
Comments in 'Plugin Development' started by EvolSoft, Feb 7, 2015.
Do you know a possible solution to do this?
why I said you can't.
Is there any other way to connect to another server?
Create a client socket to connect to the server socket that side?
Hmm... I'll try. What about Player::dataPacket()?
That function sends a
Data packet to the client. It's quite much an API function.
Well, seems like you want to redirect packets to another server. In fact, this is sort of possible, just listen to the data packet send events and cancel them all. Since pocketmine can't reply to the client, another server you are connected to could send packets to you, which you would reroute to the original client. Easier said than done, but I'm sure it will work. I would be willing to help too, I know MCPE networking (except for sending chunks that is).
And then timeout the client?
Timeout? The other server will reply with longs (0x03).
Oops pongs. Mobile ios sucks.
No. I meant, the old server doesn't get any packets and thinks the client went timeout.
We can "send" fake packets to the server. Ehh probably not a good idea to do this, but it is possible.
Of course I know it. But it's a reluctant way to do so.
I made a basic Java software to forward packets but now I have another question: How can I decrypt MCPE packets?
that's the trouble. Study https://github.com/BlockServerProject/BlockServer/tree/new/src/main/java/org/blockserver/net/
Yes. In my basic software I made a UDP "bridge" (actually it lags a bit) without decrypting and encrypting packets. I directly forwarded the packets from client to server and vice versa. The problem is that I want to make a plugin based system like BungeeCord and I must write a small API and obviously I must decrypt MCPE packets to get block position, players...
If you want some help, send me a PM or email me at [email protected]
Ok thank you
Also in old API's you can do it...
Idk how, but I sure because