//If they aren't holding a tool, move the tool to their hand
int first = inv.first(BlockUtil.getIdFromString(Config.ToolBlock));
if (!BlockUtil.getItemString(player.getItemInHand()).equals(Config.ToolBlock) && first != -1){
ItemStack back = player.getItemInHand().clone();
player.setItemInHand(inv.getItem(first));
if (back.getAmount() == 0) inv.clear(first);
else inv.setItem(first, back);
}
Util.sendMessage(player, "&cHawkEye tool enabled! &7Left click a block or place the tool to get information");