mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Reduce console spam
This commit is contained in:
parent
29a712ca80
commit
9e336c8a6f
@ -61,6 +61,8 @@ public class ExperienceManager {
|
|||||||
mcMMO.p.getLogger().info("Registering combat XP values...");
|
mcMMO.p.getLogger().info("Registering combat XP values...");
|
||||||
for (String entityString : platformSafeMap.keySet()) {
|
for (String entityString : platformSafeMap.keySet()) {
|
||||||
//Iterate over all EntityType(s)
|
//Iterate over all EntityType(s)
|
||||||
|
boolean foundMatch = false;
|
||||||
|
|
||||||
for (EntityType type : EntityType.values()) {
|
for (EntityType type : EntityType.values()) {
|
||||||
//Match ignoring case
|
//Match ignoring case
|
||||||
if (entityString.equalsIgnoreCase(type.name())) {
|
if (entityString.equalsIgnoreCase(type.name())) {
|
||||||
@ -70,11 +72,13 @@ public class ExperienceManager {
|
|||||||
}
|
}
|
||||||
//Match found
|
//Match found
|
||||||
combatXPMultiplierMap.put(type, platformSafeMap.get(entityString));
|
combatXPMultiplierMap.put(type, platformSafeMap.get(entityString));
|
||||||
} else {
|
foundMatch = true;
|
||||||
//Log an error so the admin can deal with figuring it out
|
|
||||||
mcMMO.p.getLogger().severe("No entity could be matched for the combat experience config value named - " + entityString);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!foundMatch) {
|
||||||
|
mcMMO.p.getLogger().severe("No entity could be matched for the combat experience config value named - " + entityString);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user