mirror of
https://e.coding.net/circlecloud/Soulbound.git
synced 2024-11-22 01:49:09 +00:00
修复兼容错误...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
d2d216be3b
commit
03b47b3597
@ -94,7 +94,7 @@ public class ItemUtils {
|
|||||||
|
|
||||||
public static boolean isBindedPlayer(final Player player, final ItemStack itemStack) {
|
public static boolean isBindedPlayer(final Player player, final ItemStack itemStack) {
|
||||||
final List<String> itemLore = itemStack.getItemMeta().getLore();
|
final List<String> itemLore = itemStack.getItemMeta().getLore();
|
||||||
return itemLore.contains(player.getName()) || itemLore.contains(player.getName().replaceAll("_", ""));
|
return itemLore.contains(player.getName()) || itemLore.contains(player.getName().replaceAll("_", " "));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isBindOnEquip(final ItemStack itemStack) {
|
public static boolean isBindOnEquip(final ItemStack itemStack) {
|
||||||
|
Loading…
Reference in New Issue
Block a user