if (e.getInventory().getName().startsWith("Edit Kit (")) { if (e.getCurrentItem() != null) { ItemStack redglass = new...
I'm already doing this if (e.getInventory().getName().startsWith("Edit Kit (")) {
That makes sense, I just tried this code but it didn't seem to work because when a player clicks in their own inventory it also runs the code so...
BUMP
Yes, I am doing it in an inventory that I created. This didn't seem to work either nothing appears back....
This is what I want, however, it is very buggy because I'm cancelling the event it makes the items disappear as soon as they are put into a...
Sort of, but I don't want to add it to their inventory. I want them to still be holding the item after they click it and it would reset. It is...
How would I make so when an item is clicked it is automatically replaced. I don't mean when you reopen the chest, I mean instantly so a player can...
Thank you very much. :)
How would I return a potion effect's amplifier? If I wanted to get the amplifier of the current effect on the player how would I go about doing...
Perfect. Thanks for your help! :)
Same problem and yes it is just someone was complaining of a "bug". When really they were just using the command incorrectly to launch an error....
Just add a return statement once you have set cancelled to false?
I'm working on some code with multiple string arguments. How would I check if the second argument is empty? My variable currently looks like...
I have been trying to load a hashmap from a file but every time it returns null. The hashmap isn't null as it contains this... EFFECTS:...
Separate names with a comma.