diff --git a/src/main/java/me/blackvein/quests/prompts/RequirementsPrompt.java b/src/main/java/me/blackvein/quests/prompts/RequirementsPrompt.java index bb32685f0..2e5fa87d8 100644 --- a/src/main/java/me/blackvein/quests/prompts/RequirementsPrompt.java +++ b/src/main/java/me/blackvein/quests/prompts/RequirementsPrompt.java @@ -570,7 +570,7 @@ public class RequirementsPrompt extends FixedSetPrompt { for (String dataKey : datamapKeys) { text += ChatColor.BOLD + "" + ChatColor.DARK_BLUE + index + " - " + ChatColor.RESET + ChatColor.BLUE + dataKey; if (datamap.get(dataKey) != null) { - text += ChatColor.GREEN + " (" + (String) datamap.get(dataKey) + ")\n"; + text += ChatColor.GREEN + " (" + datamap.get(dataKey).toString() + ")\n"; } else { text += ChatColor.RED + " (" + Lang.get("valRequired") + ")\n"; } diff --git a/src/main/java/me/blackvein/quests/prompts/RewardsPrompt.java b/src/main/java/me/blackvein/quests/prompts/RewardsPrompt.java index c27283a25..e9a73ff08 100644 --- a/src/main/java/me/blackvein/quests/prompts/RewardsPrompt.java +++ b/src/main/java/me/blackvein/quests/prompts/RewardsPrompt.java @@ -849,7 +849,7 @@ public class RewardsPrompt extends FixedSetPrompt { for (String dataKey : datamapKeys) { text += ChatColor.BOLD + "" + ChatColor.DARK_BLUE + index + " - " + ChatColor.RESET + ChatColor.BLUE + dataKey; if (datamap.get(dataKey) != null) { - text += ChatColor.GREEN + " (" + (String) datamap.get(dataKey) + ")\n"; + text += ChatColor.GREEN + " (" + datamap.get(dataKey).toString() + ")\n"; } else { text += ChatColor.RED + " (" + Lang.get("valRequired") + ")\n"; }