You could check for player right click event, and check if they're holding a food item. If they are set the item in their hand to null. Note:...
Use firstEmpty() method.
Serious man? I coded you basically an identical plugin for soup lol
@timtower Doesn't onEnable get called before any other code is read?
No it doesn't, "Item1.Command" gets that. I'm convinced your whole issue is because of the config returning a null value.
Literally all of your grabbing values from config will return null, you need to fix them all. Like what the hell is this:...
Bretherin from what I can see your code will not work. My man you need to use @EventHandler first off bcuz yeah. Sup man after that what are you...
Why are you using one class to hold all this information? Make a main class, a command class and a listener class. Also why don't you check if...
I'll do this now. I'll just make it completely refill their inv ok? P.S. Why are you still using 1.7, it's so outdated - upgrade. <EDIT by...
If I find time I'll do this for you, although it's quite a big (1-2 hours) project.
I will make you this, but just to check you don't want them to be able to use ANY locked item if they're not in a specific group? Or is it only...
Why can you only have one lore? Just use lore.add multiple times, then set the meta to your lore?
Why not use InventoryMoveItemEvent and check if the player has moved a chestplate to an armor slot? Calling every time a player moves is...
I mean that's one possible equation, I might make it a configurable equation in the config. EDIT: I might use sqrt because that way the higher...
I can do this but I need an equation for the amount of blocks to break per level.
The code in your eventhandler is always run before what the event would normally happen would run (this way you can still cancel it). You want to...
Before I give any text, here's the code in question: @EventHandler public void onPlayerMove(PlayerMoveEvent event) { Player player =...
I have made it: https://dev.bukkit.org/projects/dapple-configurable-op-items The plugin will appear there once it has been accepted by a Bukkit...
I am making this for you, almost done! :) btw I have also made the recipe customisable in the config, as well as all the potion effects applied...
Mods should verify it soon. *cough* @timtower
Separate names with a comma.