Pocketmine uses UDP for the communication bewteen Client and Server. But the proxy server that i am using is lagging with udp, because it need to decode all packets and so on... I was trying to create an plugin that forces the server to use Tcp, but it hasnt worked. Does someone has an Idea how to create one? By the way, if you want to see what i mean, you can test it on atomicmc.tk, because there im using the proxy.
Why use TCP? do you know what TCP does? do you know what TCP means? do you know the differences between TCP and UDP? how do you know PMMP uses UDP? why do you think UDP is bad?
You can't change the client(s)<->server communication protocol with a plugin! PocketMine uses UDP protocol because MCPE implements an UDP-based multiplayer system. To be honest I would also prefer TCP rather than UDP because "TCP packets" are easier to handle (ordered streams, less packet-loss, etc..).
In fact, you can. But it's a huge price. You'll need to forward all the incoming traffic from UDP to TCP. Then you'll need to forward all the incoming traffic from TCP to UDP (yeah, two forwards). That itself is going to take a lot of time. Better to let Mojang make the protocol changes.
The player joins the proxy via UDP, but the proxy would be faster, if it would communicate with the servers with tcp
So the TCP connection between the proxy and the server is internal. If UDP is really slow, how does something you do internally remove the bottleneck?
Its not a plugin. Its a proxysoftware developed by the developer (geNazt) of the biggest german mcjava server (GommeHD.net), which will open an mcpe server.