args.length is 0 when there are no arguments. When there is 1 argument args.length will give you 1.
Check all your args.length checks because maybe you got confused. Sometimes you check if the args.length is 0 meaning no arguments but...
You can search for Spigot's BuildTools and there will be instructions on how to set it up too on their website.
It looks like you are trying to grab the third argument when there is only two.
Index numbers for Arrays start at 0. So the first...
Hey! I think it would be more helpful if you also post how you are whitelisting/unwhitelisting players and your functionality of your whitelist.
Try to refrain from using static variables. I see no reason for the inventory to be static.
You have to check if the item is null and...
p can be null.
I don't believe wildcard imports have any significant performance losses than specific imports, if any.
But it is good...
Please post full Foo class please.
You need to set the ItemMeta to the ItemStack with setItemMeta.
setDisplayName is a method of the class ItemMeta. An ItemStakc is NOT an ItemMeta.
You can get the ItemMeta of an ItemStack with...
You are trying to cast an ItemStack to an ItemMeta.
Basic knowledge of Java is a prerequisite in making Bukkit plugins.
You can get started here from the official Bukkit wiki:...
Are you familiar with the Configuration API?
You have to pass your plugin instance into the class. You can use a constructor.
Only for 1.8+
Do NOT use an Async task for that.
Use sync task.
Have you tried setData ?
You're going to have to reset the score of the last balance to remove it from the scoreboard.
Separate names with a comma.