mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-12-03 15:43:31 +01:00
fix
This commit is contained in:
parent
7c917babda
commit
79181800ca
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user