Stopping Fall Damage if you Tp a player out of void

Discussion in 'Plugin Development' started by xXSniperzzXx_SD, Sep 21, 2012.

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

    xXSniperzzXx_SD

    How would i stop falling damage after teleporting a player out of the void,

    setVelocity(0); ?

    Abit more info:
    I am teleporting a player if they fall into the void, but when i teleport them they keep their falling speed so they instantly die, how would i prevent this?
     
  2. Offline

    kyle1320

    xXSniperzzXx_SD
    Code:
    player.setFallDistance(0F);
    Should hopefully work, I haven't tested it out though.
     
  3. Offline

    SnowGears

Thread Status:
Not open for further replies.

Share This Page