mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-23 02:35:28 +01:00
Update KitItem.java
This commit is contained in:
parent
a888bb0fd9
commit
ad56828632
@ -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 (itemStack.hasItemMeta() && meta.hasDiplayName() && meta.getDisplayName().contains(";")) {
|
if (itemStack.hasItemMeta() && meta.hasDisplayName() && 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