mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2024-12-23 00:15:08 +00:00
General refactoring - revert mistake
This commit is contained in:
parent
ded568ec3f
commit
120b35d394
1 changed files with 6 additions and 6 deletions
|
@ -67,13 +67,13 @@ public class OpenInv extends JavaPlugin {
|
|||
mainPlugin = this;
|
||||
FileConfiguration config = getConfig();
|
||||
config.set("CheckForUpdates", config.getBoolean("CheckForUpdates", true));
|
||||
config.set("notifySilentChest", config.getBoolean("notifySilentChest", true));
|
||||
config.set("notifyAnyChest", config.getBoolean("notifyAnyChest", true));
|
||||
config.set("NotifySilentChest", config.getBoolean("NotifySilentChest", true));
|
||||
config.set("NotifyAnyChest", config.getBoolean("NotifyAnyChest", true));
|
||||
config.set("ItemOpenInvItemID", config.getInt("ItemOpenInvItemID", 280));
|
||||
config.addDefault("ItemOpenInvItemID", 280);
|
||||
config.addDefault("CheckForUpdates", true);
|
||||
config.addDefault("notifySilentChest", true);
|
||||
config.addDefault("notifyAnyChest", true);
|
||||
config.addDefault("NotifySilentChest", true);
|
||||
config.addDefault("NotifyAnyChest", true);
|
||||
config.options().copyDefaults(true);
|
||||
saveConfig();
|
||||
|
||||
|
@ -90,11 +90,11 @@ public class OpenInv extends JavaPlugin {
|
|||
}
|
||||
|
||||
public static boolean notifySilentChest() {
|
||||
return mainPlugin.getConfig().getBoolean("notifySilentChest", true);
|
||||
return mainPlugin.getConfig().getBoolean("NotifySilentChest", true);
|
||||
}
|
||||
|
||||
public static boolean notifyAnyChest() {
|
||||
return mainPlugin.getConfig().getBoolean("notifyAnyChest", true);
|
||||
return mainPlugin.getConfig().getBoolean("NotifyAnyChest", true);
|
||||
}
|
||||
|
||||
public static boolean getPlayerItemOpenInvStatus(String name) {
|
||||
|
|
Loading…
Reference in a new issue