Need help with isJumping method 1.18

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.