Update PlayerExpansion.java (#7)

This commit is contained in:
GabyTM authored and Max Berkelmans committed 2018-08-26 20:34:03 +02:00
1 parent 15a1a8d926
commit 8bdd6acbc5
1 file changed
+1 -1
@@ -119,7 +119,7 @@ public class PlayerExpansion extends PlaceholderExpansion {
}
if (identifier.startsWith("item_in_hand_level_")){
String enchantment = identifier.split("item_in_hand_level")[1];
String enchantment = identifier.split("item_in_hand_level_")[1];
return String.valueOf(p.getInventory().getItemInMainHand().getEnchantmentLevel(Enchantment.getByName(enchantment)));
}