General refactoring - revert mistake

This commit is contained in:
ShadowRanger 2015-06-22 20:17:30 +10:00
parent ded568ec3f
commit 120b35d394

View file

@ -67,13 +67,13 @@ public class OpenInv extends JavaPlugin {
mainPlugin = this; mainPlugin = this;
FileConfiguration config = getConfig(); FileConfiguration config = getConfig();
config.set("CheckForUpdates", config.getBoolean("CheckForUpdates", true)); config.set("CheckForUpdates", config.getBoolean("CheckForUpdates", true));
config.set("notifySilentChest", config.getBoolean("notifySilentChest", true)); config.set("NotifySilentChest", config.getBoolean("NotifySilentChest", true));
config.set("notifyAnyChest", config.getBoolean("notifyAnyChest", true)); config.set("NotifyAnyChest", config.getBoolean("NotifyAnyChest", true));
config.set("ItemOpenInvItemID", config.getInt("ItemOpenInvItemID", 280)); config.set("ItemOpenInvItemID", config.getInt("ItemOpenInvItemID", 280));
config.addDefault("ItemOpenInvItemID", 280); config.addDefault("ItemOpenInvItemID", 280);
config.addDefault("CheckForUpdates", true); config.addDefault("CheckForUpdates", true);
config.addDefault("notifySilentChest", true); config.addDefault("NotifySilentChest", true);
config.addDefault("notifyAnyChest", true); config.addDefault("NotifyAnyChest", true);
config.options().copyDefaults(true); config.options().copyDefaults(true);
saveConfig(); saveConfig();
@ -90,11 +90,11 @@ public class OpenInv extends JavaPlugin {
} }
public static boolean notifySilentChest() { public static boolean notifySilentChest() {
return mainPlugin.getConfig().getBoolean("notifySilentChest", true); return mainPlugin.getConfig().getBoolean("NotifySilentChest", true);
} }
public static boolean notifyAnyChest() { public static boolean notifyAnyChest() {
return mainPlugin.getConfig().getBoolean("notifyAnyChest", true); return mainPlugin.getConfig().getBoolean("NotifyAnyChest", true);
} }
public static boolean getPlayerItemOpenInvStatus(String name) { public static boolean getPlayerItemOpenInvStatus(String name) {