I want to code a plugin to change the food saturation level in my server just like the LifeBoat SurviveGames.Anyone know how to do?
*impossible *actually possible Try WilliamTDR's Katana project! It has bugs like...the signs aren't visible etc. It doesn't save the world too! https://github.com/williamtdr/Katana
Actually, PocketMine has implemented the Attributes API. However, I admit that it is really terrible. You can do little using that API, but I believe that that API allows you to change hunger. As for sending packets, it is a bad idea because PocketMine itself sends Attribute update packets as well, and they would compete with each other and confuse the player.
Yes, according to the source code, but there may be a trick needed. I used addAttribute for Katana, not sure how it works on PocketMine mcpe-0.12