diff --git a/src/main/java/com/gmail/nossr50/config/RepairConfigManager.java b/src/main/java/com/gmail/nossr50/config/RepairConfigManager.java index ea0e93ce8..f2123e67d 100644 --- a/src/main/java/com/gmail/nossr50/config/RepairConfigManager.java +++ b/src/main/java/com/gmail/nossr50/config/RepairConfigManager.java @@ -18,30 +18,39 @@ public class RepairConfigManager { File dataFolder = plugin.getDataFolder(); File vanilla = new File(dataFolder, "repair.vanilla.yml"); - if(!vanilla.exists()) { + if (!vanilla.exists()) { plugin.saveResource("repair.vanilla.yml", false); } - for(String location : dataFolder.list()) { - if(!pattern.matcher(location).matches()) continue; + for (String location : dataFolder.list()) { + if (!pattern.matcher(location).matches()) { + continue; + } plugin.getLogger().info("Loading " + location + " repair config file..."); File file = new File(dataFolder, location); - if(file.isDirectory()) continue; + + if (file.isDirectory()) { + continue; + } RepairConfig rConfig = new RepairConfig(plugin, location); rConfig.load(); List rConfigRepairables = rConfig.getLoadedRepairables(); - if(rConfigRepairables != null) { + + if (rConfigRepairables != null) { repairables.addAll(rConfigRepairables); } } } public List getLoadedRepairables() { - if(repairables == null) return new ArrayList(); + if (repairables == null) { + return new ArrayList(); + } + return repairables; } } diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index 9a7371eb5..5a3e200ec 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -161,14 +161,15 @@ public class mcMMO extends JavaPlugin { Graph graph = metrics.createGraph("Percentage of servers using timings"); - if(pm.useTimings()) { + if (pm.useTimings()) { graph.addPlotter(new Metrics.Plotter("Enabled") { @Override public int getValue() { return 1; } }); - } else { + } + else { graph.addPlotter(new Metrics.Plotter("Disabled") { @Override public int getValue() {