This commit is contained in:
Indyuce 2022-04-03 00:12:29 +02:00
parent 4e1786bd21
commit d06d3c1eed
5 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@ public class CraftingStatus {
for (String stationId : config.getKeys(false)) {
if (!MMOItems.plugin.getCrafting().hasStation(stationId)) {
MMOItems.plugin.getLogger().log(Level.WARNING,
"An error occured while trying to load crafting station recipe data of '" + name + "': "
"An error occurred while trying to load crafting station recipe data of '" + name + "': "
+ "could not find crafting station with ID '" + stationId
+ "', make sure you backup that player data file before the user logs off.");
continue;
@ -38,7 +38,7 @@ public class CraftingStatus {
String recipeId = config.getString(stationId + "." + recipeConfigId + ".recipe");
if (recipeId == null || !station.hasRecipe(recipeId)) {
MMOItems.plugin.getLogger().log(Level.WARNING,
"An error occured while trying to load crafting station recipe data of '" + name + "': "
"An error occurred while trying to load crafting station recipe data of '" + name + "': "
+ "could not find recipe with ID '" + recipeId
+ "', make sure you backup that player data file before the user logs off.");
continue;
@ -46,7 +46,7 @@ public class CraftingStatus {
Recipe recipe = station.getRecipe(recipeId);
if (!(recipe instanceof CraftingRecipe)) {
MMOItems.plugin.getLogger().log(Level.WARNING, "An error occured while trying to load crafting station recipe data of '"
MMOItems.plugin.getLogger().log(Level.WARNING, "An error occurred while trying to load crafting station recipe data of '"
+ name + "': " + "recipe '" + recipe.getId() + "' is not a CRAFTING recipe.");
continue;
}

View File

@ -83,7 +83,7 @@ public class TemplateModifier {
if (!exception.getMessage().isEmpty()) {
MMOItems.plugin.getLogger().log(Level.INFO,
"An error occured while trying to load item gen modifier " + id + ": " + exception.getMessage()); }
"An error occurred while trying to load item gen modifier " + id + ": " + exception.getMessage()); }
}
}

View File

@ -120,7 +120,7 @@ public class DropCommandTreeNode extends CommandTreeNode {
ItemStack item = new MMOItemDropItem(type, name, dropChance / 100, unidentifiedChance / 100, min, max).getItem(null);
if (item == null || item.getType() == Material.AIR) {
sender.sendMessage(
MMOItems.plugin.getPrefix() + ChatColor.RED + "An error occured while attempting to generate the item called " + name + ".");
MMOItems.plugin.getPrefix() + ChatColor.RED + "An error occurred while attempting to generate the item called " + name + ".");
sender.sendMessage(MMOItems.plugin.getPrefix() + ChatColor.RED + "See console for more information!");
return CommandResult.FAILURE;
}

View File

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

View File

@ -104,7 +104,7 @@ public class WorldGenManager implements Listener, Reloadable {
WorldGenTemplate template = new WorldGenTemplate(config.getConfigurationSection(key));
templates.put(template.getId(), template);
} catch (IllegalArgumentException exception) {
MMOItems.plugin.getLogger().log(Level.WARNING, "An error occured when loading gen template '" + key + "': " + exception.getMessage());
MMOItems.plugin.getLogger().log(Level.WARNING, "An error occurred when loading gen template '" + key + "': " + exception.getMessage());
}
}
}