Anyone have any idea?
The server I'm running has a very frustrating problem. It will run fine for a few hours, but will then silently have everyone disconnect from the...
No. The code checks if the player is null, and if so, continues to the next player.
If the player isn't online, Bukkit.getPlayer returns null. Add a null check to make sure the player is actually online. if(player == null)...
You have to register the class as a Listener. Make it implement Listener public class lightningwand extends JavaPlugin implements Listener { and...
The plugin has now been updated to v0.6! Changes are as follows: New mob type, ZombiePigman. New config option for Zombies. IsVillager Whether...
Make it so the player has to be underwater for it to work.
To make it so it runs less often, make it so the player has to lose more air before incrementing the player's food level. @EventHandler public...
This code should be able to do it. public void moveTo(LivingEntity entity, Location moveTo, float speed) { EntityLiving nmsEntity =...
Digi I'm not doing stuff in the main thread between async tasks, I'm doing stuff in one, huge async task. I could separate them all up into...
Done. Is that just to improve performance, or will things break without it?
That works perfectly, thanks! I do need synchronous tasks, as I make several calls to the Bukkit API. Unless there's some way to make calls to...
Tirelessly Bukkit Tasks don't seem to have a join method Digi I can't run them all in one task because their's a bunch of calculations are going...
Not exactly what you're asking, but you could probably adapt this to what you want to do with some math. public void moveTo(LivingEntity entity,...
Can't run them in a single task. How would I do that?
Separate names with a comma.