Skip to content

Commit

Permalink
Use Addon#logWarning() instead of BentoBox's logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Poslovitch committed Sep 7, 2019
1 parent 407c264 commit e428d52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/world/bentobox/level/config/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Settings(Level level) {
setLevelCost(level.getConfig().getInt("levelcost", 100));
if (getLevelCost() < 1) {
setLevelCost(1);
level.getLogger().warning("levelcost in blockvalues.yml cannot be less than 1. Setting to 1.");
level.logWarning("levelcost in blockvalues.yml cannot be less than 1. Setting to 1.");
}

if (level.getConfig().isSet("limits")) {
Expand All @@ -79,7 +79,7 @@ public Settings(Level level) {
Material mat = Material.valueOf(material);
bl.put(mat, level.getConfig().getInt("limits." + material, 0));
} catch (Exception e) {
level.getLogger().warning(() -> "Unknown material (" + material + ") in blockvalues.yml Limits section. Skipping...");
level.logWarning("Unknown material (" + material + ") in blockvalues.yml Limits section. Skipping...");
}
}
setBlockLimits(bl);
Expand All @@ -92,12 +92,12 @@ public Settings(Level level) {
Material mat = Material.valueOf(material);
bv.put(mat, level.getConfig().getInt("blocks." + material, 0));
} catch (Exception e) {
level.getLogger().warning(()-> "Unknown material (" + material + ") in config.yml blocks section. Skipping...");
level.logWarning("Unknown material (" + material + ") in config.yml blocks section. Skipping...");
}
}
setBlockValues(bv);
} else {
level.getLogger().severe("No block values in config.yml! All island levels will be zero!");
level.logWarning("No block values in config.yml! All island levels will be zero!");
}
// Worlds
if (level.getConfig().isSet("worlds")) {
Expand All @@ -113,7 +113,7 @@ public Settings(Level level) {
worldBlockValues.put(bWorld, values);
}
} else {
level.getLogger().severe(() -> "Level Addon: No such world in config.yml : " + world);
level.logWarning("Level Addon: No such world in config.yml : " + world);
}
}
}
Expand Down

0 comments on commit e428d52

Please sign in to comment.