For example: in your main plugin: public static MainClassName getInstance() { return this.plugin; } public static MainClassName plugin; public...
Thanks :) How do I apply this time to the Sidebar Scoreboard objective? Meant teams, not time. EDIT by Moderator: merged posts, please use the...
Hey, I'm wondering - whenever I try to create a scoreboard with more than 16 characters to a line, it gives an IllegalArgumentException - that...
Oh my bad, apparently it's a part of YAML parsing that just means that it has the same pointer as the thing above. Solved.
There's a ConfigurationSerializable interface, or something like that.
company.getConfig().createSection(args[1]); ConfigurationSection cs = company.getConfig().getConfigurationSection(args[1]);...
I sort of disagree with this. I'd use the serializable interface.
Thanks for pointing that out, forgot about that. Though that wasn't really my main issue, this is the config after adding the toString(). Test:...
package me.Darkpicasa.Companies.Commands; import java.util.ArrayList; import java.util.List; import me.Darkpicasa.Companies.Companies; import...
player.updateInventory();
Then what's the point of posting here?
It seems like you are copying this code from somewhere. I know of zero developers that would name variables "secondo" and "effetto." Also,...
Basic things you might need for config: getConfig().options.copyDefaults(true); saveConfig(); You should call that in your onEnable somewhere....
Oh yeah, sorry... Haven't used books in a while :P
When you create the ItemStack, just set the data... Cast it to a short.
One way is counting characters per line, and formatting based on that. I don't know much about books in Bukkit though.
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), String command);
I'm not reading through all that code, but console error of some sort?
Yeah. You should look at the "Caused By" part of the stack trace ;) 0 is normal. -1 is the minimum, +1 is the maximum. EDIT by Moderator: merged...
I don't think you can highlight in cmd on windows... But you can in Terminal on macs.
Separate names with a comma.