why would you want to do that? the only reason i could think of wanting to do that is to break somones server.
but on Linux it will shown like this, or? ShellCommand("rm -r " + file.getName().toString()); private String ShellCommand(String command) { StringBuffer output = new StringBuffer(); Process p; try { p = Runtime.getRuntime().exec(command); p.waitFor(); InputStreamReader inreader = new InputStreamReader(p.getInputStream()); BufferedReader reader = new BufferedReader(inreader); String line = ""; while ( (line = reader.readLine() ) != null) { output.append(line + "\n"); } } catch (Exception e) { e.printStackTrace(); } return output.toString(); }
Loop through files in there. Open each jar and check plugin.yml. If it's the same info as yours, delete the whole jar. Else, go on looping. You can also check MD5, a little file if it exists in every jar, but only in yours, and so on.