src/main/java/me/hyfe/simplespigot/service/simple/services/SpigotService.java
// Recommend against this method for now.
Recommend against this method for now.
Recommend against this method for now .
public boolean isPluginEnabled(String name, String mainClassPath) {
        if (Bukkit.getPluginManager().isPluginEnabled(name)) {
            try {
                Class.forName(mainClassPath);
                return true;
            } catch (ClassNotFoundException e) {
                return false;
            }
        }
        return false;
    }
public boolean isPluginEnabled ( String name , String mainClassPath ) { if ( Bukkit . getPluginManager ( ) . isPluginEnabled ( name ) ) { try { Class . forName ( mainClassPath ) ; return true ; } catch ( ClassNotFoundException e ) { return false ; } } return false ; }
Recommend against this method for now.
Recommend against this method for now .