For reference, YAML supports multiple lines using literal style blocks: test: |- aa bb .. results in a value of "aa\nbb" for test....
In ServerListPlus I use the outdated version name (modifyable using ProtocolLib) to display custom player slot formats. However, I do also check...
sockmonkey1 Your code is working perfectly for me, maybe the world or the locations are wrong? Make some debug output to check if they're really...
That should be only a warning, not a real compiler error. You can try adding the annotation before that line so it won't be displayed:...
ArthurMaker Does it throw an exception or is it just doing nothing?
Doooogle Hmm, too bad it's not working. I'm going to test it myself, can you post the generated configuration here? Doooogle Ok, I think I got...
It is saving the configuration like this?
Oh, try using (HashMap<String, Integer>) instead.
Doooogle Yes, that's the constructor. :) What exactly does it say? (Post something like the error message)
You mean how to load the map? Something like this should work, but I don't know exactly. playerIP = (Map<String, String>) Main.getConfig().get("IP");
Doooogle No, add it in your constructor (after you set the plugin). ^^
bfgbfggf Use something like that: (Source) public static Entity getKiller(EntityDeathEvent event) { EntityDamageEvent entityDamageEvent =...
You can add it in the constructor of your listener class. Something like: money = (Map<String, Integer>) plugin.getConfig().get("money"); That...
You need to save the configuration to the file system after changing it. Just call plugin.saveConfig() after setting the map and it should work. :)
Now you need to register the events and commands in the main plugin class. (Make sure passing your plugin instance when creating the class!)...
Don't make your listener / command class extend JavaPlugin. Instead pass the instance to a constructor and use it to load and save the...
Crafted Evil And that's not working? :O It should work actually... Do you get the armor added to your inventory?
Looks like there's something wrong with your plugin class... Can you post the complete plugin class here?
You need to add before saving the configuration using saveConfig(), so if you want to update the configuration in the join event you need to add...
Where did you add it?
Separate names with a comma.