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