1
0
mirror of https://e.coding.net/circlecloud/Soulbound.git synced 2024-11-24 02:09:08 +00:00

兼容部分ESS的Kit命令生成的装备...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2016-01-13 12:54:20 +08:00
parent 29fa1ec343
commit d2d216be3b
2 changed files with 311 additions and 312 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.me.tft_02.soulbound</groupId>
<artifactId>Soulbound</artifactId>
<version>1.3.1</version>
<version>1.3.2</version>
<name>Soulbound</name>
<description>Soulbound items for your RPG servers!</description>
<url>https://github.com/TfT-02/Soulbound</url>
@ -61,7 +61,7 @@
<properties>
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<env.BUILD_NUMBER>Debug</env.BUILD_NUMBER>
<update.description>&amp;c修复背包满时 拾取物品 绑定物品消失BUG(感谢john180修复)...</update.description>
<update.description>&amp;a兼容部分ESS的Kit命令生成的装备...&amp;c修复背包满时 拾取物品 绑定物品消失BUG(感谢john180修复)...</update.description>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>

View File

@ -94,8 +94,7 @@ public class ItemUtils {
public static boolean isBindedPlayer(final Player player, final ItemStack itemStack) {
final List<String> itemLore = itemStack.getItemMeta().getLore();
return itemLore.contains(player.getName());
return itemLore.contains(player.getName()) || itemLore.contains(player.getName().replaceAll("_", ""));
}
public static boolean isBindOnEquip(final ItemStack itemStack) {