[UNSOLVED] How to distinguish a jump from floating up water and steps?

Discussion in 'Plugin Development' started by jamw, Jul 26, 2012.

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

    jamw

    It has come to my attention that there is no PlayerJumpEvent... I can't check if the Y is increased because that would be floating up water, going up stairs.. even flying in creative, So is there a way to check if the player jumped?
     
  2. Offline

    r0306

    jamw
    I'm not too sure on this either, although it would be great if Bukkit implemented a JumpEvent.
    Code:
    @EventHandler
    public void onMove(PlayerMoveEvent event)
    {
      if (event.getPlayer().getFallDistance() >= 1 && event.getPlayer().getFallDistance() != 0)
      {
          //player jumped
      }
    }
     
  3. Offline

    Taien

    As far as I know there's no way to check. I could be wrong.
     
Thread Status:
Not open for further replies.

Share This Page