This commit is contained in:
Brianna O'Keefe 2018-10-26 14:07:47 -04:00
parent 7c917babda
commit 79181800ca

View File

@ -39,7 +39,7 @@ public class KitItem {
public KitItem(ItemStack item) {
ItemStack itemStack = item.clone();
ItemMeta meta = itemStack.getItemMeta();
if (meta.getDisplayName().contains(";")) {
if (meta != null || meta.getDisplayName().contains(";")) {
translateLine(meta.getDisplayName());
String[] split = meta.getDisplayName().replace(String.valueOf(ChatColor.COLOR_CHAR), "").split(";", 2);
meta.setDisplayName(split[1].contains("faqe") ? null : meta.getDisplayName().split(";", 2)[1]);