Issue with Player velocities

Discussion in 'Plugin Development' started by microgeek, Apr 8, 2013.

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

    microgeek

    The code below is getting run, I have debug printlns. This should work, but it pushes the Player in the air about 1/8 of a block, I recall this working fine, not tool long ago.
    Code:
    Vector v = player.getVelocity().clone().add(new Vector(0, 2, 0));
    player.setVelocity(v);
    
    Also, increasing the Vector I add to 10, the Player will freeze for moving too quickly.
     
  2. Offline

    JazzaG

    Worked perfectly for me, launched about 15-20 blocks.
     
Thread Status:
Not open for further replies.

Share This Page