Fix language file serialization

This commit is contained in:
Daniel Saukel 2016-06-09 22:22:32 +02:00
parent fa5020f348
commit ad9e9b0077

View File

@ -223,8 +223,8 @@ public enum DMessages implements Messages {
*/
public static FileConfiguration toConfig() {
FileConfiguration config = new YamlConfiguration();
for (Messages message : values()) {
config.set(message.getIdentifier(), message.getMessage());
for (DMessages message : values()) {
config.set(message.getIdentifier(), message.message);
}
return config;