mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fix formatting
This commit is contained in:
parent
50ef8d9610
commit
83c4d09093
@ -201,7 +201,8 @@ public class Config extends AutoUpdateConfigLoader {
|
|||||||
// Check if there were any errors
|
// Check if there were any errors
|
||||||
if (Misc.noErrorsInConfig(reason)) {
|
if (Misc.noErrorsInConfig(reason)) {
|
||||||
mcMMO.p.debug("No errors found in " + fileName + "!");
|
mcMMO.p.debug("No errors found in " + fileName + "!");
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
mcMMO.p.getLogger().warning("Errors were found in " + fileName + "! mcMMO was disabled!");
|
mcMMO.p.getLogger().warning("Errors were found in " + fileName + "! mcMMO was disabled!");
|
||||||
mcMMO.p.getServer().getPluginManager().disablePlugin(mcMMO.p);
|
mcMMO.p.getServer().getPluginManager().disablePlugin(mcMMO.p);
|
||||||
mcMMO.p.noErrorsInConfigFiles = false;
|
mcMMO.p.noErrorsInConfigFiles = false;
|
||||||
@ -409,9 +410,7 @@ public class Config extends AutoUpdateConfigLoader {
|
|||||||
|
|
||||||
/* Repair */
|
/* Repair */
|
||||||
public double getRepairXPBase() { return config.getDouble("Experience.Repair.Base", 1000.0); }
|
public double getRepairXPBase() { return config.getDouble("Experience.Repair.Base", 1000.0); }
|
||||||
public double getRepairXP(RepairMaterialType repairMaterialType) {
|
public double getRepairXP(RepairMaterialType repairMaterialType) { return config.getDouble("Experience.Repair." + StringUtils.getCapitalized(repairMaterialType.toString())); }
|
||||||
return config.getDouble("Experience.Repair." + StringUtils.getCapitalized(repairMaterialType.toString()));
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean getRepairAnvilMessagesEnabled() { return config.getBoolean("Skills.Repair.Anvil_Messages", true); }
|
public boolean getRepairAnvilMessagesEnabled() { return config.getBoolean("Skills.Repair.Anvil_Messages", true); }
|
||||||
public int getRepairAnvilId() { return config.getInt("Skills.Repair.Anvil_ID", 42); }
|
public int getRepairAnvilId() { return config.getInt("Skills.Repair.Anvil_ID", 42); }
|
||||||
|
Loading…
Reference in New Issue
Block a user