Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true) {
- File folder = new File("c:\\ZDLeague\\ClientRuntime\\");
- File[] listOfFiles = folder.listFiles();
- if (listOfFiles.length != 0) {
- try {
- Runtime.getRuntime().exec("powershell ./activateZDaemon.ps1");
- TimeUnit.MILLISECONDS.sleep(400);
- } catch (Exception e) {}
- for (File file : listOfFiles) {
- if (file.isFile()) {
- try (BufferedReader br = new BufferedReader(new FileReader(file))) {
- String line;
- while ((line = br.readLine()) != null) {
- BRI.type("rcon "+line);
- BRI.enter();
- // try {TimeUnit.MILLISECONDS.sleep(400);} catch (Exception e) {}
- }
- } catch (Exception e) {}
- }
- file.delete();
- }
- BRI.altTab();
- }
- try {TimeUnit.MILLISECONDS.sleep(18);} catch (Exception e) {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement