Question Need help with isJumping method 1.18

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

JRabble

New member
Mar 16, 2022
5
0
1
So recently I have started making my own plugin, in which i really need to use player#isJumping method, but I realized that it doesn’t work. Is this a thing or am I doing something wrong?



if (p.isJumping()){

// my code

}
 

JRabble

New member
Mar 16, 2022
5
0
1
okay, but then how do I detect when player jumps, i know you could get Y, but then it will think that player jumps even if he falls
 

electronicboy

Administrator
Staff member
Dec 11, 2021
321
18
68
28
paper has an event for checking that which is based upon the logic for where the player increases the jumping stat
 
  • Like
Reactions: JRabble