From 8f89eb9d8ca54e7934014d9b84387dce238e64ed Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Thu, 4 Jul 2024 06:46:20 -0400 Subject: [PATCH] Addendum to previous commit --- .../pikamug/quests/player/BukkitQuester.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java b/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java index 3f1a91836..dcff497d1 100644 --- a/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java +++ b/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java @@ -3347,34 +3347,34 @@ public class BukkitQuester implements Quester { final String message = formatCompletedObjectiveMessage("place", goal.getAmount()); if (plugin.getConfigSettings().canTranslateNames() && !goal.hasItemMeta() && !goal.getItemMeta().hasDisplayName()) { - if (!plugin.getLocaleManager().sendMessage(p, message, increment.getType(), increment.getDurability(), + if (!plugin.getLocaleManager().sendMessage(p, message, goal.getType(), goal.getDurability(), null)) { - sendMessage(message.replace("", BukkitItemUtil.getName(increment))); + sendMessage(message.replace("", BukkitItemUtil.getName(goal))); } } else { - sendMessage(message.replace("", BukkitItemUtil.getName(increment))); + sendMessage(message.replace("", BukkitItemUtil.getName(goal))); } } else if (type.equals(ObjectiveType.USE_BLOCK)) { final String message = formatCompletedObjectiveMessage("use", goal.getAmount()); if (plugin.getConfigSettings().canTranslateNames() && !goal.hasItemMeta() && !goal.getItemMeta().hasDisplayName()) { - if (!plugin.getLocaleManager().sendMessage(p, message, increment.getType(), increment.getDurability(), + if (!plugin.getLocaleManager().sendMessage(p, message, goal.getType(), goal.getDurability(), null)) { - sendMessage(message.replace("", BukkitItemUtil.getName(increment))); + sendMessage(message.replace("", BukkitItemUtil.getName(goal))); } } else { - sendMessage(message.replace("", BukkitItemUtil.getName(increment))); + sendMessage(message.replace("", BukkitItemUtil.getName(goal))); } } else if (type.equals(ObjectiveType.CUT_BLOCK)) { final String message = formatCompletedObjectiveMessage("cut", goal.getAmount()); if (plugin.getConfigSettings().canTranslateNames() && !goal.hasItemMeta() && !goal.getItemMeta().hasDisplayName()) { - if (!plugin.getLocaleManager().sendMessage(p, message, increment.getType(), increment.getDurability(), + if (!plugin.getLocaleManager().sendMessage(p, message, goal.getType(), goal.getDurability(), null)) { - sendMessage(message.replace("", BukkitItemUtil.getName(increment))); + sendMessage(message.replace("", BukkitItemUtil.getName(goal))); } } else { - sendMessage(message.replace("", BukkitItemUtil.getName(increment))); + sendMessage(message.replace("", BukkitItemUtil.getName(goal))); } } else if (type.equals(ObjectiveType.CRAFT_ITEM)) { final ItemStack is = ((BukkitStage) getCurrentStage(quest)).getItemsToCraft().get(getCurrentStage(quest).getItemsToCraft()