src/main/java/me/firewolf8385/flameperms/api/PlayerAPI.java
/**
     * Check if the player exists in the database.
     * @param p Player to check whether they exist.
     * @return Whether the player exists.
     */
Check if the player exists in the database.
@param p Player to check whether they exist.
@return Whether the player exists.
Check if the player exists in the database . @param p Player to check whether they exist . @return Whether the player exists .
public static boolean playerExists(Player p)
    {
        try
        {
            PreparedStatement statement = MySQL.getConnection().prepareStatement("SELECT * from fp_users WHERE uuid = ?");
            statement.setString(1, p.getUniqueId().toString());
            ResultSet results = statement.executeQuery();
            return results.next();
        }
        catch(SQLException e)
        {
            e.printStackTrace();
        }
        return false;
    }
public static boolean playerExists ( Player p ) { try { PreparedStatement statement = MySQL . getConnection ( ) . prepareStatement ( "SELECT * from fp_users WHERE uuid = ?" ) ; statement . setString ( 1 , p . getUniqueId ( ) . toString ( ) ) ; ResultSet results = statement . executeQuery ( ) ; return results . next ( ) ; } catch ( SQLException e ) { e . printStackTrace ( ) ; } return false ; }
Check if the player exists in the database.
Check if the player exists in the database .