Cancel Fall Damage

Discussion in 'Plugin Development' started by PeterXonwiiXx, Nov 11, 2015.

Thread Status:
Not open for further replies.
  1. as i try to do a dubblejump the dubblejump is working fine with and without permission but sometimes it gives me faal damage,i want to fix it but not working and cant find anything..

    here is my code http://pastebin.com/PZz89Bma

    Thanks in advance to help me out <3
     
  2. Offline

    Creeperzombi3

    @PeterXonwiiXx
    You would have a PlayerDamageEvent and check if the player was damaged by Fall damage, if so, cancel the event.
    To prevent it from always happening, set up something like for when they jump, add them to a list, and remove them when they are damaged.
     
  3. Offline

    Scimiguy

    Should use a hashset instead of an arraylist, in the interest of performance
     
  4. @Scimiguy ehst do you mean,tried so much so far and nothing workss,you maybe have an example of what you mean :(
     
  5. Offline

    Scimiguy

    @PeterXonwiiXx
    Cancel the PlayerDamageEvent like Creeper suggested
     
Thread Status:
Not open for further replies.

Share This Page