LimitedCreative/src/de/jaschastarke/minecraft/limitedcreative/Config.java

32 lines
853 B
Java
Raw Normal View History

package de.jaschastarke.minecraft.limitedcreative;
import java.io.IOException;
import de.jaschastarke.bukkit.lib.Core;
import de.jaschastarke.bukkit.lib.configuration.PluginConfiguration;
import de.jaschastarke.maven.ArchiveDocComments;
import de.jaschastarke.utils.ClassDescriptorStorage;
/**
* Limited Creative - Configuration
*
* (YAML-Syntax: http://en.wikipedia.org/wiki/YAML)
*/
@ArchiveDocComments
public class Config extends PluginConfiguration {
public Config(Core plugin) {
super(plugin);
}
@Override
public void save() {
try {
ClassDescriptorStorage.load(plugin.getResource("META-INF/descriptions.jos"));
} catch (IOException e) {
plugin.getLog().severe("Failed to load ConfigNode-Descriptions");
}
super.save();
}
}