init field first, fix #221

This commit is contained in:
DNx5 2015-09-25 01:06:58 +07:00
parent 8b71f964da
commit 45d939f0f5

View File

@ -96,9 +96,9 @@ public final class Settings extends YamlConfiguration {
protected static YamlConfiguration configFile;
public Settings(AuthMe pl) {
configFile = (YamlConfiguration) plugin.getConfig();
plugin = pl;
instance = this;
plugin = pl;
configFile = (YamlConfiguration) plugin.getConfig();
}
public static void reload() throws Exception {