setSprinting Question

Discussion in 'Plugin Development' started by r0306, Jul 5, 2012.

  1. Offline

    r0306

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  2. Offline

    TheGreenGamerHD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  3. Offline

    r0306

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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?
  4. Offline

    TheGreenGamerHD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.

Share This Page