Changed some console info messages to warnings (appear yellow for clarity)

This commit is contained in:
Jules 2024-05-16 17:20:12 -07:00
parent 4cff5558a9
commit a6b159ad7e
8 changed files with 12 additions and 11 deletions

View File

@ -159,6 +159,7 @@ public class MMOItems extends MMOPlugin {
});
PluginUtils.hookDependencyIfPresent("MMOInventory", unused -> new MMOInventorySupport());
// This needs to be before modifier registration (MMOCore)
findRpgPlugins();
/*
@ -229,7 +230,7 @@ public class MMOItems extends MMOPlugin {
try {
new MMOItemsRewardTypes().register();
} catch (NullPointerException ignored) {
getLogger().log(Level.INFO, "Could not Hook onto BossShopPro");
getLogger().log(Level.WARNING, "Could not Hook onto BossShopPro");
}
}
}).runTaskLater(this, 1L);

View File

@ -61,7 +61,7 @@ public class CraftingStation implements PreloadedObject {
try {
registerRecipe(loadRecipe(config.getConfigurationSection("recipes." + key)));
} catch (IllegalArgumentException exception) {
MMOItems.plugin.getLogger().log(Level.INFO,
MMOItems.plugin.getLogger().log(Level.WARNING,
"An issue occurred registering recipe '" + key + "' from crafting station '" + id + "': " + exception.getMessage());
}

View File

@ -204,7 +204,7 @@ public class ConfigManager implements Reloadable {
defaultItemCapacity = new NumericStatFormula(MMOItems.plugin.getConfig().getConfigurationSection("default-item-capacity"));
} catch (IllegalArgumentException exception) {
defaultItemCapacity = new NumericStatFormula(5, .05, .1, .3);
MMOItems.plugin.getLogger().log(Level.INFO,
MMOItems.plugin.getLogger().log(Level.WARNING,
"An error occurred while trying to load default capacity formula for the item generator, using default: "
+ exception.getMessage());
}

View File

@ -73,7 +73,7 @@ public class PluginUpdateManager {
if (split.length > 4) format += ",display=\"" + split[4].replace("_", " ") + "\"";
newest.add(format + "}");
} else {
MMOItems.plugin.getLogger().log(Level.INFO,
MMOItems.plugin.getLogger().log(Level.WARNING,
"Config Update 3: Could not match ingredient from '" + ingredient + "' from recipe '" + key + "', added it anyway.");
newest.add(ingredient);
}
@ -98,7 +98,7 @@ public class PluginUpdateManager {
else if (split[0].equalsIgnoreCase("exp"))
newest.add("exp{profession=" + split[1] + ",amount=" + split[2] + "}");
else {
MMOItems.plugin.getLogger().log(Level.INFO,
MMOItems.plugin.getLogger().log(Level.WARNING,
"Config Update 3: Could not match condition from '" + condition + "' from recipe '" + key + "', added it anyway.");
newest.add(condition);
}
@ -106,14 +106,14 @@ public class PluginUpdateManager {
config.set("recipes." + key + ".conditions", newest);
} catch (Exception exception) {
MMOItems.plugin.getLogger().log(Level.INFO,
MMOItems.plugin.getLogger().log(Level.WARNING,
"Config Update 3: Could not convert recipe with key '" + key + "': " + exception.getMessage());
}
try {
config.save(file);
} catch (IOException exception) {
MMOItems.plugin.getLogger().log(Level.INFO,
MMOItems.plugin.getLogger().log(Level.WARNING,
"Config Update 3: Could not save config '" + file.getName() + "': " + exception.getMessage());
}
}

View File

@ -231,7 +231,7 @@ public class RecipeManager implements Reloadable {
blueprint.disable();
Bukkit.removeRecipe(blueprint.getNk());
} catch (Throwable throwable) {
MMOItems.plugin.getLogger().log(Level.INFO, "Could not unregister knowledge book recipe '" + blueprint.getNk() + "': " + throwable.getMessage());
MMOItems.plugin.getLogger().log(Level.WARNING, "Could not unregister knowledge book recipe '" + blueprint.getNk() + "': " + throwable.getMessage());
}
});
customRecipes.clear();

View File

@ -175,7 +175,7 @@ public class TemplateManager implements Reloadable {
return template;
} catch (IllegalArgumentException exception) {
MMOItems.plugin.getLogger().log(Level.INFO,
MMOItems.plugin.getLogger().log(Level.WARNING,
"An error occurred while trying to reload item gen template '" + id + "': " + exception.getMessage());
return null;
}

View File

@ -114,7 +114,7 @@ public class CanDeskin extends BooleanStat implements ConsumableItemInteraction
final MMOItem mmoitem = template.newBuilder(playerData.getRPG()).build();
new SmartGive(player).give(mmoitem.newBuilder().build());
} catch (Exception exception) {
MMOItems.plugin.getLogger().log(Level.INFO, "Could not retrieve item skin with ID '" + skinId + "' for player " + playerData.getUniqueId());
MMOItems.plugin.getLogger().log(Level.WARNING, "Could not retrieve item skin with ID '" + skinId + "' for player " + playerData.getUniqueId());
// No luck :(
}

View File

@ -26,7 +26,7 @@ public class LanguageFile extends ConfigFile {
if (found == null) {
change = true;
getConfig().set(path, found = defaultTranslation.get());
MMOItems.plugin.getLogger().log(Level.INFO, "Could not find translation for '" + path + "', generating it");
MMOItems.plugin.getLogger().log(Level.WARNING, "Could not find translation for '" + path + "', generating it");
}
return found;