src/main/java/me/firewolf8385/flameperms/api/GroupAPI.java
/**
     * Checks to see if a rank exists.
     * @param group The rank to check.
     * @return Whether rank exists.
     */
Checks to see if a rank exists.
@param group The rank to check.
@return Whether rank exists.
Checks to see if a rank exists . @param group The rank to check . @return Whether rank exists .
public static boolean groupExists(String group)
    {
        try
        {
            PreparedStatement statement = MySQL.getConnection().prepareStatement("SELECT * from fp_groups WHERE name = ?");
            statement.setString(1, group.toLowerCase());
            ResultSet results = statement.executeQuery();
            return results.next();
        }
        catch(SQLException e)
        {
            e.printStackTrace();
        }
        return false;
    }
public static boolean groupExists ( String group ) { try { PreparedStatement statement = MySQL . getConnection ( ) . prepareStatement ( "SELECT * from fp_groups WHERE name = ?" ) ; statement . setString ( 1 , group . toLowerCase ( ) ) ; ResultSet results = statement . executeQuery ( ) ; return results . next ( ) ; } catch ( SQLException e ) { e . printStackTrace ( ) ; } return false ; }
Checks to see if a rank exists.
Checks to see if a rank exists .