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...
Exactly. It does, and you can easily find it by googling it. Always come to the forums as a last resort, almost all questions like this have been...
As far as I am aware, Bukkit does not have any method for editing brewing 'recipes'. You could, however, make a new recipe for a potion using a...
First off, getItemId() is getting removed from Bukkit in 1.8, so I recommend finding an alternative method. Also, is your item id in the config a...
I believe this is simply a warning, and the deprecation will be removed. But, to explain deprecation, it means the method is going to be removed...
Bukkit plugins have a plugin.getConfig().getStringList() method if it were an actual YML formatted list, but in this case, you would want to use a...
Yeaah, Bukkit.getPlayer(name), player.getName(), Bukkit.getPlayerExact().. etc, etc, etc. Why is this necessary? o-O
You don't need to cancel the event if it isn't a player, as it'll just be null unless otherwise stated :) Also, when I'm testing if an entity is a...
http://lmgtfy.com/?q=WorldGuard API Learn the basics to the APIs, and actually make an effort to learn for yourself as opposed to searching for...
Separate names with a comma.