How do I set a specific team/player hungers bar?

//ads -- adsterra.com -- native banner
?>
So I want to make my own custom minigame just for me and my friends, and I was wondering if I could set certain players hunger bars, or even teams, to 3 so they can't sprint, I would really love to see a command for this, I already know a lot about commandblocks but this I don't.
Best Answer
Hunger is potion 17.
I ran to to this issue in 1.6.4
I had to run '/effect [playername] 17 [duration in seconds]
Pictures about "How do I set a specific team/player hungers bar?"



Quick Answer about "How do I set a specific team/player hungers bar?"
*SIMPLE* HUNGERBAR in Unity 2020 | Beginner Tutorial
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Rachel Claire, Charlotte May, Ketut Subiyanto, cottonbro