Does anyone have any idea about Hunger System? May be check player position every N second and take away food, proportionally traveled distance?
I thought the hunger system was already implemented...? You may have to change your difficulty settings.
https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/item/Food.php https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/entity/Human.php (search for 'food')