mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-12-04 16:13:28 +01:00
fix
This commit is contained in:
parent
7c917babda
commit
79181800ca
@ -39,7 +39,7 @@ public class KitItem {
|
|||||||
public KitItem(ItemStack item) {
|
public KitItem(ItemStack item) {
|
||||||
ItemStack itemStack = item.clone();
|
ItemStack itemStack = item.clone();
|
||||||
ItemMeta meta = itemStack.getItemMeta();
|
ItemMeta meta = itemStack.getItemMeta();
|
||||||
if (meta.getDisplayName().contains(";")) {
|
if (meta != null || meta.getDisplayName().contains(";")) {
|
||||||
translateLine(meta.getDisplayName());
|
translateLine(meta.getDisplayName());
|
||||||
String[] split = meta.getDisplayName().replace(String.valueOf(ChatColor.COLOR_CHAR), "").split(";", 2);
|
String[] split = meta.getDisplayName().replace(String.valueOf(ChatColor.COLOR_CHAR), "").split(";", 2);
|
||||||
meta.setDisplayName(split[1].contains("faqe") ? null : meta.getDisplayName().split(";", 2)[1]);
|
meta.setDisplayName(split[1].contains("faqe") ? null : meta.getDisplayName().split(";", 2)[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user