mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-02 16:49:34 +01:00
Update KitItem.java
This commit is contained in:
parent
30e0954f0d
commit
a888bb0fd9
@ -39,7 +39,7 @@ public class KitItem {
|
||||
public KitItem(ItemStack item) {
|
||||
ItemStack itemStack = item.clone();
|
||||
ItemMeta meta = itemStack.getItemMeta();
|
||||
if (itemStack.hasItemMeta() && meta.getDisplayName().contains(";")) {
|
||||
if (itemStack.hasItemMeta() && meta.hasDiplayName() && 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]);
|
||||
|
Loading…
Reference in New Issue
Block a user