What do you need to do with it? If you need to do something just when they're holding an item, you're probably stuck setting up a repeating task...
You're looping over all keys and then displaying all values each time, which causes that result. Either get the value for a specific key with the...
Hey guys. I've been using Navigation in CraftBukkit (well technically nms) to move mobs around using a statement like the one below. Previously...
You need to call getServer().addRecipe(recipe)
You do not register anything but the base slash command in your plugin.yml. In your plugin.yml do something like commands: extremepaintball:...
EntityDamageEntityEvent is for all entities, not just players. You should check if the entity is an instance of Player first. As for the...
Post the code?
I've never found it to trigger twice.
First off, I would name your object something that's a little more indicative on what it's intended to do (for example PlayerStatTracker, if...
Why use an array and not a list?
Are you setting instance = this in your onEnable?
I'm confused what you're trying to do in the first part. Is pName supposed to represent the task ID that you store in the hashmap? If so you...
BlockBreakEvent event = new BlockBreakEvent(block, player); Bukkit.getPluginManager().callEvent(event); if (event.isCancelled()) {...
Don't return false after a successful command. Returning false for onCommand causes Bukkit to automatically send the player the "usage" message...
Throw a BlockBreakEvent on the block for that player and see if it comes back as cancelled.
Unless this changed very recently, config.getInt does not return null if the path doesn't exist (despite the JavaDocs saying it does).
I think you're misunderstanding how a HashMap works, or I'm misunderstanding what you want. A hashmap maps a key to a value. In your case it...
I assume we're talking about an async task then? Since I imagine a sync task would finish it's run method before the CommandExecutor can do...
You're comparing materials but it looks like you're trying to create an ItemStack to compare it to without actually creating one. Changing it to...
To remove recipes, since that wasn't covered yet, use getServer().recipeIterator() and remove the ones you don't want.
Separate names with a comma.