protected boolean checkexist(String charname, String account)
    {
        try
        {

            ResultSet rs = Main.sql.doquery("SELECT username FROM bout_characters WHERE name='" + charname + "' LIMIT 1");
            if (rs.next())
            {
                String username = rs.getString("username");
                debug(username);
                return true;
            }
            rs = Main.sql.doquery("SELECT name FROM bout_characters WHERE username='" + account + "' LIMIT 1");
            if (rs.next())
            {
                String name = rs.getString("name");
                debug(name);
                return true;
            }
            rs = Main.sql.doquery("SELECT * FROM bout_users WHERE username='" + account + "' LIMIT 1");
            if (rs.next())
            {
                return false;
            }
            else
            {
                return true;
            }
        } catch (Exception e)
        {
        }
        return false;
    }