src/main/java/me/hyfe/simplespigot/item/SpigotItem.java
/**
     * Runs the specified consumer if the path inside the Config is present.
     *
     * @param config    The config to perform on.
     * @param path      The path inside the config to perform on.
     * @param localPath The code to run if the path inside the config is present.
     */
Runs the specified consumer if the path inside the Config is present.
@param config    The config to perform on.
@param path      The path inside the config to perform on.
@param localPath The code to run if the path inside the config is present.
Runs the specified consumer if the path inside the Config is present . @param config The config to perform on . @param path The path inside the config to perform on . @param localPath The code to run if the path inside the config is present .
private static void validatePath(Config config, String path, Consumer<String> localPath) {
        if (config.get(path) != null) {
            localPath.accept(path);
        }
    }
private static void validatePath ( Config config , String path , Consumer < String > localPath ) { if ( config . get ( path ) != null ) { localPath . accept ( path ) ; } }
Runs the specified consumer if the path inside the Config is present.
Runs the specified consumer if the path inside the Config is present .