package me.eddiep.minecraft.ubotpatcher;

import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.nio.file.CopyOption;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;

public class UbotPatcher extends JavaPlugin {

    @Override
    public void onEnable() {
        getLogger().info("Searching for jar files...");

        File[] jars = getDataFolder().listFiles(new FileFilter() {
            @Override
            public boolean accept(File pathname) {
                return pathname.getName().endsWith("jar");
            }
        });

        if (jars == null) {
            getLogger().info("No jar files found!");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        getLogger().info(jars.length + " jar files found!");

        for (File f : jars) {
            getLogger().info("Moving " + f.getName() + "...");
            File target = new File(getDataFolder().getParentFile(), f.getName());

            try {
                Files.move(f.toPath(), target.toPath(), StandardCopyOption.REPLACE_EXISTING);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        getLogger().info("Patching complete!");
        getServer().getPluginManager().disablePlugin(this);
    }
}

@@ -118,74 +118,14 @@
 .io.
-FileFilter;%0Aimport java.io.IOException;%0Aimport java.nio.file.CopyO
+IOExce
 ptio
@@ -243,17 +243,16 @@
 lugin %7B%0A
-%0A
     @Ove
@@ -395,122 +395,19 @@
 les(
-new FileFilter() %7B%0A            @Override%0A            public boolean accept(File pathname) %7B%0A                return
+pathname -%3E
  pat
@@ -441,33 +441,8 @@
 ar%22)
-;%0A            %7D%0A        %7D
 );%0A%0A
@@ -850,25 +850,24 @@
 getName());%0A
-%0A
             
@@ -1180,10 +1180,9 @@
 ;%0A    %7D%0A
+
 %7D
-%0A

Update do using lambda expression