@TheGamesHawk2001 I wanna restore the durability value after it's been used. If the durability of a pickaxe is 50, I want the value to stay at 50...
@ReadySetPawn @TheGamesHawk2001 Just to clarify, I just want to undo the durability use when the item is used normally. I don't want an...
@uksspy I was testing this with a normal pickaxe on normal stone. But I forgot that situation could also happen. I'll implement it later once I...
Hey everyone. So, I'm trying to cancel items from taking durability damage under normal circumstances. @EventHandler public void...
@nverdier Ah ok. I'll do that next time
Gunpowder is Material.SULPHUR
Done! https://www.dropbox.com/s/d6fz7qg0lgkv3n5/BlockConvert.jar?dl=0
@superchris05326 He means to check if the display name is not null first.
You can try to add a "#" to comment out the line. As far as I know, any comments in the body will be removed since the config files can only save...
One possible mistake in your "deposit" section of code: if (player.getInventory().contains(token, amount)) { This condition will only be true...
@Kismet I made this for you since it seems like no one else did. https://www.dropbox.com/s/c2s9pb5x3dz53pf/FortuneFalse.jar?dl=0 I didn't add the...
@mrdude123 Fixed my mistakes. https://www.dropbox.com/s/bx8d6ybjhdvcvq8/Vampyr.jar?dl=0 Let me know if I derped on anything else lol. Also, sorry...
If you still need this plugin, you can download my version <EDIT by Timtower: mediafire links are not allowed> Currently, the plugin will give...
mchungames4441 Sorry for the delay. I finished this earlier, but I spent hours trying to figure out why my permissions weren't working. Turns out,...
mchungames4441 Ok, working on it now. Also, which plugin is the autosmelting one?
mchungames4441 If you still prefer to have this plugin compatible with auto-inventory, I think I can write it for you. I can also make it so that...
Ah ok thanks :) Also, is there a way to determine/manipulate which plugin executes their handler first?
If two different plugins use the same event handler, (for example: if they both handle BlockBreakEvent) will both event handlers run, or will one...
So then you can just do ItemStack item = new ItemStack(Material.getMaterial(materialName)); You just need to make sure that the Strings are...
I think you can use Material.getMaterial(String name)
Separate names with a comma.