Ooooh, null! xD I didn't even think about that! Glad I could help, even if just a lil' bit :)
That's strange, I use this exact method in several of my plugins O_o Try taking of the && p.getItemInHand().getAmount() > 1 and making it its own...
Try adding a check for if there is one left. if(amm = 1){ p.getItemInHand().setType(Material.AIR) }else{ p.getItemInHand().setAmount(newAmm); } It...
Oh, I'm sorry Derpderp. You will need to use a Listener to find the BlockBreakEvent, and if the block broken is equal to Grass, spawn an item....
int amm = p.getItemInHand().getAmount(); int newAmm = amm - 1; p.getItemInHand().setAmount(newAmm);
I'm not exactly sure what you're asking, but it sounds to me like you want to edit Minecraft source code, which cannot be edited in plugins. This...
Nice, how'd you get it? I'm actually quite interested.
You need to add a "" to make it a string. (ChatColor. + "" + this.getConfig().getString("ChatColor")); Sorry I forgot that. This also goes for in...
First off, your onEnable() method can be much simpler! Simply add: this.saveDefaultConfig(); to it, and it will do the folder and file loading for...
A copy of your onEnable() method would be quite helpful :) It appears you're misplacing a number, more than likely confusing the strange ways Java...
https://forums.bukkit.org/threads/worldedit-api-load-schematic-to-location.83212/
After looking at this plugin, it involves BrewEvent, PlayerInteractEvent, and CustomPotion. It's actually quite complicated, and as I don't work...
Separate names with a comma.