So, basically I have an enum class, and I need to get a boolean and ints and strings from a config, how would I make a "Getter" to get strings from a config.yml? I don't know if I worded this correctly, Second question, how would I make {player} for a config, so "{player} has done this" instead of p.getName(), etc.
http://wiki.bukkit.org/Configuration_API_Reference http://docs.oracle.com/javase/7/doc...va.lang.CharSequence, java.lang.CharSequence)
Bukkit.getServer().broadcastMessage(plugin.getConfig().getString("combatlogmessage").replace(p.getName(), "{player}")); I don't know if this is the correct way to do this. I want to be able to do "{player} has combat logged"
Bukkit.getServer().broadcastMessage(plugin.getConfig().getString("combatlogmessage").replace("{player}", p.getName())); So I just had to switch them around?