@mythbusterma You are wrong on this, Bukkit shades the entire commons lang 2.6 into the API Jar. Craftbukkit inherits it through the fact its...
@mythbusterma Whether you use the ArrayList<> or List<>, it won't change the fact of how to iterate them and placing them in a file such as yaml....
@HenrySartori First thing, its bad to have Arrays classified as static. As @RenditionsRule said, should use a List<String> instead as such....
@I Al Istannen You need to catch it like any other exception try { code here of what might throw some kind of exception } catch...
according to your code above, you give it to them in their inventory, so instead of trying to store it as a material in code, which is not needed...
@timtower is right, you don't need to log, however it is a good habit to get into doing though for other things like exceptions as it can provide...
give this a try then. ItemStack inkSack = new ItemStack(Material.INK_SACK); Dye dye = new Dye(); dye.setColor(DyeColor.BLUE); //or what ever...
@MrGamingLion66 Most of the plugins you are attempting to create have already been created before and most of them also happen to be open source,...
ItemStack has getType() methods. And since there will only be 1 item in the ItemStack you shouldn't have too much of an issue. ItemStack inkSack...
try ItemStack inkSack = new ItemStack(Material.INK_SACK, 1, (short) 4); just to note, @JanTuck had included a code snippet of what I told you to...
@mythbusterma never said my way was the best and even stated there might be a more cleaner way, but given the limited information, I was giving a...
You are right @JanTuck , you either need to use the method you said, or use itemstack and the dyecolor method.
its called LAPIS_ORE and LAPIS_BLOCK. Lapis ore is the item, where as, lapis block, is a block of lapis
I would use - Apache commons lang 3 and do something like this. String s = "Appelboom:22:23:51,Home:31:53:634"; HashMap<String, Location> h...
This happens when you have two plugins with the exact same plugin.yml files, from the name to where the main class is located. Most commonly...
Separate names with a comma.