Solved Reset player.getWalkSpeed

Discussion in 'Plugin Development' started by MCMastery, Aug 16, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    MCMastery

    Hello.

    In my plugin, sometimes I alter a player's walk speed. However, when they rejoin, I want them to reset their walk speed back to normal. How can I do this?
     
  2. Offline

    Zombie_Striker

    @MCMastery
    Setting the walk speed to 1 should return them back to the normal walk speed.
     
  3. Offline

    MCMastery

    1 is the max, -1 is the min
     
  4. Offline

    SantaClawz69

    Regular Walk speed is 0.2, so setting it to 0.2 will work.
     
  5. Offline

    Zombie_Striker

    @MCMastery
    Do you have players that have "normal" walk speeds? If so, print out and use those normal speeds.
     
  6. Offline

    MCMastery

    no, it's just me

    @SantaClawz69 ok that seems good, thanks!
     
Thread Status:
Not open for further replies.

Share This Page