diff --git a/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java b/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java index 9016ef7b9..582a51185 100644 --- a/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java +++ b/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java @@ -36,6 +36,7 @@ import me.blackvein.quests.Quester; import me.blackvein.quests.Quests; import me.blackvein.quests.util.ItemUtil; import me.blackvein.quests.util.Lang; +import me.blackvein.quests.util.MiscUtil; public class ItemStackPrompt extends FixedSetPrompt { @@ -170,14 +171,14 @@ public class ItemStackPrompt extends FixedSetPrompt { if (cc.getSessionData("tempName") != null && cc.getSessionData("tempAmount") != null) { return new DataPrompt(); } else { - cc.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("itemCreateNoIDAmount")); + cc.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("itemCreateNoNameAmount")); return new ItemStackPrompt(oldPrompt); } } else if (input.equalsIgnoreCase("4")) { if (cc.getSessionData("tempName") != null && cc.getSessionData("tempAmount") != null) { return new EnchantmentPrompt(); } else { - cc.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("itemCreateNoIDAmount")); + cc.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("itemCreateNoNameAmount")); return new ItemStackPrompt(oldPrompt); } } else if (input.equalsIgnoreCase("5")) { @@ -393,7 +394,7 @@ public class ItemStackPrompt extends FixedSetPrompt { @Override public Prompt acceptInput(ConversationContext cc, String input) { if (input.equalsIgnoreCase(Lang.get("cmdClear")) == false && input.equalsIgnoreCase(Lang.get("cmdCancel")) == false) { - Enchantment e = Quests.getEnchantmentPretty(input); + Enchantment e = Quests.getEnchantmentPretty(MiscUtil.getCapitalized(input)); if (e != null) { cc.setSessionData("tempEnchant", e); return new LevelPrompt(Quester.prettyEnchantmentString(e)); diff --git a/src/main/resources/strings.yml b/src/main/resources/strings.yml index dd7fea023..4ca75d32a 100644 --- a/src/main/resources/strings.yml +++ b/src/main/resources/strings.yml @@ -28,11 +28,11 @@ COMMAND_QUESTADMIN_GIVE_HELP: " [player] [quest] - Force a player to ta COMMAND_QUESTADMIN_QUIT: "quit" COMMAND_QUESTADMIN_QUIT_HELP: " [player] [quest] - Force a player to quit a quest" COMMAND_QUESTADMIN_POINTS: "points" -COMMAND_QUESTADMIN_POINTS_HELP: " [player] [amount] - Set a players' Quest Points" +COMMAND_QUESTADMIN_POINTS_HELP: " [player] [amount] - Set a player's Quest Points" COMMAND_QUESTADMIN_TAKEPOINTS: "takepoints" COMMAND_QUESTADMIN_TAKEPOINTS_HELP: " [player] [amount] - Take away a player's Quest Points" COMMAND_QUESTADMIN_GIVEPOINTS: "givepoints" -COMMAND_QUESTADMIN_GIVEPOINTS_HELP: " [player] [amount] - Add to a player Quest Points" +COMMAND_QUESTADMIN_GIVEPOINTS_HELP: " [player] [amount] - Add to a player's Quest Points" COMMAND_QUESTADMIN_POINTSALL: "pointsall" COMMAND_QUESTADMIN_POINTSALL_HELP: " [amount] - Set ALL players' Quest Points" COMMAND_QUESTADMIN_FINISH: "finish"