@EventHandler
  void onClick(PlayerInteractEvent event){
    try {
        Block block = event.getClickedBlock();
        if(block.getTypeId()==1) AutoSetUp.gift(event.getPlayer());
        if (!((block != null) && (block.getType() == Material.IRON_BLOCK))) {
            return;
        }
        if(event.getPlayer().getItemInHand() != null) {
            if(event.getPlayer().getItemInHand().getType()!=Material.AIR)
            AutoSetUp.callInventory(event.getPlayer());
            else
            {
                event.getPlayer().sendMessage("你需要先在手上拿东西");
                return;
            }
        }
        else{
            event.getPlayer().sendMessage("手上需要先拿着物品");
        }
    }catch(Exception e){}
}