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:
parent
29fa1ec343
commit
d2d216be3b
4
pom.xml
4
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.me.tft_02.soulbound</groupId>
|
<groupId>com.me.tft_02.soulbound</groupId>
|
||||||
<artifactId>Soulbound</artifactId>
|
<artifactId>Soulbound</artifactId>
|
||||||
<version>1.3.1</version>
|
<version>1.3.2</version>
|
||||||
<name>Soulbound</name>
|
<name>Soulbound</name>
|
||||||
<description>Soulbound items for your RPG servers!</description>
|
<description>Soulbound items for your RPG servers!</description>
|
||||||
<url>https://github.com/TfT-02/Soulbound</url>
|
<url>https://github.com/TfT-02/Soulbound</url>
|
||||||
@ -61,7 +61,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
|
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
|
||||||
<env.BUILD_NUMBER>Debug</env.BUILD_NUMBER>
|
<env.BUILD_NUMBER>Debug</env.BUILD_NUMBER>
|
||||||
<update.description>&c修复背包满时 拾取物品 绑定物品消失BUG(感谢john180修复)...</update.description>
|
<update.description>&a兼容部分ESS的Kit命令生成的装备...&c修复背包满时 拾取物品 绑定物品消失BUG(感谢john180修复)...</update.description>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
<repositories>
|
<repositories>
|
||||||
|
@ -94,8 +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());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isBindOnEquip(final ItemStack itemStack) {
|
public static boolean isBindOnEquip(final ItemStack itemStack) {
|
||||||
|
Loading…
Reference in New Issue
Block a user