Like I said earlier, just check to make sure event.getCaught() isn't null. @EventHandler public void onPlayerFish(PlayerFishEvent event) {...
I can't give you a 100% correct answer without all of your code, but I imagine that the error is being thrown when a Player doesn't catch...
Gamecube762 Wow, I was trying to make things way more complicated than they needed to be. Thanks!
I'm making a mingame plugin that needs 4 teams, but the amount of players in a game might not be divisible by 4. How can I assign random teams so...
It's not an error, it's a deprecation warning. Your code should work fine.
Found a solution, changed the method to return a list of locations instead of a list of blocks. public List<Location> waterBlocks(){...
Bump
You'd probably have to get the message and play around with it using JSON, but you're gonna have to ask someone else to figure out how to do that....
Water doesn't stop players from moving :p I'm also trying to get all of the blocks the entity is touching, and entities like sheep, cows, slimes,...
[spoiler] UPDATE: I copy/pasted this method from World.java, and I changed it a bit so it would do what I need it to. The only problem is...
Forseth11 I figured as much, thanks :p I've sort of already tried your method with EntityDamageByEntityEvent, and it doesn't work although I feel...
When PlayerMoveEvent calls, I want to make sure it was only called because a Player moved on their own, not because of knockback from another...
Gater12 Huh, I've always assumed those were needed. My bad. [spoiler]
Separate names with a comma.