Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ItemStack item = p.getInventory().getItemInMainHand().clone();
- System.out.println("uncloned air = " + p.getInventory().getItemInMainHand().getType().equals(Material.AIR));
- System.out.println("cloned air = " + p.getInventory().getItemInMainHand().clone().getType().equals(Material
- .AIR));
- System.out.println("item actual name = " + ReflectionUtil.getMinecraftName(p.getInventory().getItemInMainHand
- ()));
- if (item.getType() == Material.AIR) {
- message(p, "command.auction.start.cannot_auction_air");
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment