Why are you using a HashMap in the first place? Are you trying to compare two objects?
If you're just waiting to see if someone stands still for five seconds... @EventHandler onPlayerMove(PlayerMoveEvent event) { //Good stuff...
Sure, you can check if the TnT is powered. But when? He wants an event or events that will be the end-all, be-all, "Hey, a TnT is primed now" from...
scheduleSyncRepeatingTask() is an int. Record the value that it returns to cancel it later with getServer().getScheduler().cancelTask(taskID)....
You are looking for a PlayerInteractEvent with Action type Action.RIGHT_CLICK_BLOCK or Action.RIGHT_CLICK_AIR. You will need to check for the item...
You do not appear to have a constructor, and you never assign a value to (Main)plugin. You should at some point probably add this: public...
If I am not mistaken, getDamager() would return the bobber. The fishing event would probably tell you what the bobber is, and you could get that...
What's happening here is, you're the Damager in the EntityDamageByEntityEvent where you HIT the fireball. The event you wrote assumes you to be...
I rather wanted them to be in a sub-package. It's conceivable that package local would be a fine visibility for the methods and even the array, if...
Mildly derailing this topic here, but what's wrong with compiling with CraftBukkit, and not Bukkit, if it works? What could go wrong? I can't seem...
Without looking at the code, when I hear "name cannot be null," my instinct is that you're passing a value that might be null to a function which...
I want to violently rip two listeners out of a single-class plugin and put them both in their own classes. Unfortunately, I couldn't think of a...
Title says it all - I'd like to see a very simple plugin with /name <Name> to change weapons' display names by updating the tile entity, added in...
Yar har fiddle dee-dee...
Happy 4/20.
Separate names with a comma.