diff --git a/pom.xml b/pom.xml
index 342535886..60841b1dd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
me.blackvein.quests
quests
- 2.8.7
+ 2.8.8
quests
https://github.com/FlyingPikachu/Quests/
jar
diff --git a/src/main/java/me/blackvein/quests/Quester.java b/src/main/java/me/blackvein/quests/Quester.java
index 76c6340eb..9fcd8a2ad 100644
--- a/src/main/java/me/blackvein/quests/Quester.java
+++ b/src/main/java/me/blackvein/quests/Quester.java
@@ -1595,7 +1595,7 @@ public class Quester {
public static String enchantmentString(Enchantment e) {
if (Lang.get("ENCHANTMENT_" + e.getName()).equals("NULL")) {
Bukkit.getLogger().warning(e.getName() + " was not found in Lang.yml, please ask the developer to " + "update the file or simply add an entry for the enchantment");
- return "ENCHANTMENT_" + e.getName();
+ return e.getName().toLowerCase().replaceAll("_", " ");
}
return (Lang.get("ENCHANTMENT_" + e.getName()));
}
diff --git a/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java b/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java
index 28a3bdbef..20f414ffa 100644
--- a/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java
+++ b/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java
@@ -310,7 +310,7 @@ public class ItemStackPrompt extends FixedSetPrompt {
for (Enchantment e : Enchantment.values()) {
text += ChatColor.GREEN + Quester.prettyEnchantmentString(e) + ", ";
}
- text = text.substring(0, text.length() - 1);
+ text = text.substring(0, text.length() - 2);
return text + "\n" + ChatColor.YELLOW + Lang.get("itemCreateEnterEnch");
}
diff --git a/src/main/java/me/blackvein/quests/util/Lang.java b/src/main/java/me/blackvein/quests/util/Lang.java
index 15c29b3c5..c3312c9b0 100644
--- a/src/main/java/me/blackvein/quests/util/Lang.java
+++ b/src/main/java/me/blackvein/quests/util/Lang.java
@@ -840,6 +840,7 @@ public class Lang {
langMap.put("ENCHANTMENT_ARROW_FIRE", "Flame");
langMap.put("ENCHANTMENT_ARROW_INFINITE", "Infinity");
langMap.put("ENCHANTMENT_ARROW_KNOCKBACK", "Punch");
+ langMap.put("ENCHANTMENT_BINDING_CURSE", "BindingCurse");
langMap.put("ENCHANTMENT_DAMAGE_ALL", "Sharpness");
langMap.put("ENCHANTMENT_DAMAGE_ARTHROPODS", "BaneOfArthropods");
langMap.put("ENCHANTMENT_DEPTH_STRIDER", "DepthStrider");
@@ -861,7 +862,9 @@ public class Lang {
langMap.put("ENCHANTMENT_PROTECTION_FIRE", "FireProtection");
langMap.put("ENCHANTMENT_PROTECTION_PROJECTILE", "ProjectileProtection");
langMap.put("ENCHANTMENT_SILK_TOUCH", "SilkTouch");
+ langMap.put("ENCHANTMENT_SWEEPING", "Sweeping");
langMap.put("ENCHANTMENT_THORNS", "Thorns");
+ langMap.put("ENCHANTMENT_VANISHING_CURSE", "VanishingCurse");
langMap.put("ENCHANTMENT_WATER_WORKER", "AquaAffinity");
// Colors
langMap.put("COLOR_BLACK", "Black");