parent
4b3c164a93
commit
6dea0ada1f
|
@ -132,16 +132,17 @@ public class ItemsConfig extends ConfigLoader {
|
|||
|
||||
public boolean isActionItem(ItemStack itemStack, ActionType actionType) {
|
||||
for (SoulbindItem soulbindItem : getSoulbindItems(actionType)) {
|
||||
|
||||
if (itemStack.getData().equals(soulbindItem.getMaterialData())) {
|
||||
if (itemStack.hasItemMeta()) {
|
||||
ItemMeta itemMeta = itemStack.getItemMeta();
|
||||
if (soulbindItem.getName() != null) {
|
||||
if (soulbindItem.getName() != null)
|
||||
if (itemMeta.getDisplayName().contains(soulbindItem.getName()))
|
||||
if (soulbindItem.getLore() != null && !soulbindItem.getLore().isEmpty())
|
||||
if (itemMeta.hasLore()
|
||||
&& itemMeta.getLore().containsAll(soulbindItem.getLore()))
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue