mirror of
https://e.coding.net/circlecloud/Soulbound.git
synced 2024-11-24 02:09:08 +00:00
fix unbind can't remove tag...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
d4e26f4fcd
commit
0f4babe423
@ -3,7 +3,6 @@ package com.me.tft_02.soulbound.util;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
@ -44,9 +43,9 @@ public class ItemUtils {
|
||||
|
||||
if (itemMeta.hasLore()) {
|
||||
List<String> oldLore = itemMeta.getLore();
|
||||
oldLore.remove(ChatColor.DARK_RED + "Bind on Pickup");
|
||||
oldLore.remove(ChatColor.DARK_RED + "Bind on Equip");
|
||||
oldLore.remove(ChatColor.DARK_RED + "Bind on Use");
|
||||
oldLore.remove(Misc.EQUIPBIND_TAG);
|
||||
oldLore.remove(Misc.PICKUPBIND_TAG);
|
||||
oldLore.remove(Misc.USEBIND_TAG);
|
||||
itemLore.addAll(oldLore);
|
||||
}
|
||||
|
||||
@ -55,6 +54,7 @@ public class ItemUtils {
|
||||
if (Config.getInstance().getShowNameInLore()) {
|
||||
itemLore.add(player.getName());
|
||||
}
|
||||
|
||||
itemMeta.setLore(itemLore);
|
||||
itemStack.setItemMeta(itemMeta);
|
||||
return itemStack;
|
||||
|
Loading…
Reference in New Issue
Block a user