Does setting a player's mode to sprinting using player.setSprinting(true) actually do anything other than send the sprinting animation to the other players? Is there a way to actually make the player sprint because it seems like this feature may be client-sided.
Sprint is client-sided, as far as I know. The reason I believe this, is because most hacked/modded clients have a 'sprint' feature, which toggles the actual sprint.
@ZeusAllMighty11 Okay. Thanks for clarifying that up. I was a little confused. Do you know if toggling sprinting mode decreases hunger as if the players were sprinting?
Well from the client, if you run a modified minecraft (hacked client , I mean) and activate sprinting, it will be like regular sprinting and deplete your hunger bar until you are at 3. If the server does not have nocheat, forcesprint will bypass the 3 food marker and allow the player to keep sprinting.