mirror of
https://e.coding.net/circlecloud/Soulbound.git
synced 2024-11-22 01:49:09 +00:00
编码
This commit is contained in:
parent
2185518737
commit
059ffb05ec
@ -16,7 +16,7 @@ public class ArmorStandListener implements Listener {
|
|||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
final ItemStack itemStack = event.getPlayerItem();
|
final ItemStack itemStack = event.getPlayerItem();
|
||||||
if (itemStack != null && ItemUtils.isSoulbound(itemStack)) {
|
if (itemStack != null && ItemUtils.isSoulbound(itemStack)) {
|
||||||
player.sendMessage(ChatColor.RED + "绑定物品不允许被放置在盔甲架上.");
|
player.sendMessage(ChatColor.RED + "绑定物品不允许被放置在盔甲架上.");
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user