From e63e742c8e9d8b12059f1bf82aee1639ede0de95 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 16 Dec 2019 10:12:46 +0100 Subject: [PATCH] Finished autodeletion of arenas --- src/de/steamwar/bungeecore/SubserverSystem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/SubserverSystem.java b/src/de/steamwar/bungeecore/SubserverSystem.java index f002c57..c04a5ba 100644 --- a/src/de/steamwar/bungeecore/SubserverSystem.java +++ b/src/de/steamwar/bungeecore/SubserverSystem.java @@ -32,7 +32,7 @@ public class SubserverSystem { return new Subserver(Servertype.ARENA, serverName, port, () -> { try { - System.out.println(new ProcessBuilder("rm", "-r", "/home/minecraft/backbone/arenaserver/" + serverName).start().exitValue()); + new ProcessBuilder("rm", "-r", "/home/minecraft/backbone/arenaserver/" + serverName).start(); } catch (IOException e) { throw new SecurityException("Could not clean up folder", e); } @@ -51,7 +51,7 @@ public class SubserverSystem { new Bauserver(p.getName() + "s Bau", p.getUniqueId(), port, () -> { try { - System.out.println(new ProcessBuilder("rm", "-r", "/home/minecraft/backbone/arenaserver/" + p.getName()).start().exitValue()); + new ProcessBuilder("rm", "-r", "/home/minecraft/backbone/arenaserver/" + p.getName()).start(); } catch (IOException e) { throw new SecurityException("Could not clean up folder", e); }