1
0
mirror of https://e.coding.net/circlecloud/ProtectItem.git synced 2024-12-27 20:48:51 +00:00

修改API调整汉化...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-11-28 15:37:11 +08:00
parent 52ebef4fa3
commit 7cdc3aaddb

View File

@ -80,12 +80,7 @@ public class ItemManager {
} }
public String getItemName(final ItemStack i) { public String getItemName(final ItemStack i) {
if (i == null || i.getType() == Material.AIR) { return LocalUtil.getItemType(i);
return "";
}
final int dur = i.getDurability();
final String dura = i.getMaxStackSize() != 1 ? dur != 0 ? "_" + dur : "" : "";
return (i.getType().name() + dura).toLowerCase();
} }
public boolean hasActionPerm(final Player p, final ItemStack i, final ActionType action) { public boolean hasActionPerm(final Player p, final ItemStack i, final ActionType action) {