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

}
 

bobooski

New member
Apr 9, 2022
7
0
1
There is most likely something else that you're doing incorrectly that is causing the code not to be run, since yes, the return value of Player#isJumping is indeed a boolean value and that would follow correctly.

In what you've provided, nothing is technically incorrect, but it's hard to get a gauge of where the issue could be taking place with such a small snippet. Congratulations on starting to program your own plugins! It's a big and challenging step, but rewarding in the end.