Thanks to pocketmine for packets