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:
parent
52ebef4fa3
commit
7cdc3aaddb
@ -80,12 +80,7 @@ public class ItemManager {
|
||||
}
|
||||
|
||||
public String getItemName(final ItemStack i) {
|
||||
if (i == null || i.getType() == Material.AIR) {
|
||||
return "";
|
||||
}
|
||||
final int dur = i.getDurability();
|
||||
final String dura = i.getMaxStackSize() != 1 ? dur != 0 ? "_" + dur : "" : "";
|
||||
return (i.getType().name() + dura).toLowerCase();
|
||||
return LocalUtil.getItemType(i);
|
||||
}
|
||||
|
||||
public boolean hasActionPerm(final Player p, final ItemStack i, final ActionType action) {
|
||||
|
Loading…
Reference in New Issue
Block a user