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?
Alright, so I have a class that implements Runnable and is always called asynchronously. In that class's run method, I then run several...
The plugin has now been updated to v0.4! The changes are as follows: Now compiled with Java 6 for REAL this time. Built in kill counter added,...
ZArena v0.3.1 is now out! Changes are as follows: Updated to CB 1.4.7R0.1 Custom item enchantments are fixed. The ZArena player list for spout,...
ZArena v0.3 is now out! Changes are as follows: Added support for spout. Spout players can hit the 'o' key to open up ZArena spout options. Spout...
You have to loop through all entities in the world the block is in. If the entity is within x meters of the block, add it to a list of entities....
Separate names with a comma.