Detect if a player is jumping

Discussion in 'Plugin Development' started by Xx_LeetGamer_xX, Feb 13, 2013.

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

    Xx_LeetGamer_xX

    Is this possible to do? I know if you press F3 then there's a boolean displayed for this, is there any way to read that boolean?
     
  2. Offline

    LaxWasHere

    Player move event?
     
  3. Offline

    Xx_LeetGamer_xX

    Are you talking about logging the to/from locations for a Y coordinate change? If so I will want to keep looking for a better method. My overall goal here is to make a double jump system.
     
  4. Offline

    StyL_TwisT

    Sounds like a great idea, and yes i believe so.
     
  5. Offline

    skore87

    You could see if the velocity from the player object has a vertical value. Worth a shot to at least look at it.
     
  6. Offline

    hapm

  7. Offline

    blablubbabc

    The "turing fly-mode temporary-on"-thing works pretty well. But it breaks plugins that change fly-mode..
     
  8. Offline

    CaptainBern Retired Staff

    boolean isJumping = player.getLocation().getBlockY() == player.getLocation().getY;
    edit: oh nvm...
     
  9. Offline

    Xx_LeetGamer_xX

    I think I might of found a solution to this, I'll edit it into this post later today.
     
  10. Offline

    ziimzy

    Post it!
     
  11. Offline

    gomeow

    ziimzy
    Erm... that was 3 monthes ago...
     
    Xx_LeetGamer_xX likes this.
  12. Offline

    ziimzy

    Erm.. I know. Doesnt mean he never had the code.
     
Thread Status:
Not open for further replies.

Share This Page