2013-01-18 21:51:08 +00:00
|
|
|
package de.jaschastarke.minecraft.limitedcreative;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
import de.jaschastarke.bukkit.lib.Core;
|
|
|
|
import de.jaschastarke.bukkit.lib.configuration.PluginConfiguration;
|
2013-01-20 12:15:34 +00:00
|
|
|
import de.jaschastarke.configuration.annotations.IsConfigurationNode;
|
2013-01-18 21:51:08 +00:00
|
|
|
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();
|
|
|
|
}
|
2013-01-20 12:15:34 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Debug
|
|
|
|
*/
|
|
|
|
@IsConfigurationNode(order = 9999)
|
|
|
|
public boolean getDebug() {
|
|
|
|
return config.getBoolean("debug", false);
|
|
|
|
}
|
2013-01-18 21:51:08 +00:00
|
|
|
}
|