geforkt von SteamWar/BungeeCore
Trying fixing directory deletion
Dieser Commit ist enthalten in:
Ursprung
23c7653e59
Commit
40f54274b7
@ -32,7 +32,7 @@ public class SubserverSystem {
|
|||||||
|
|
||||||
return new Subserver(Servertype.ARENA, serverName, port, () -> {
|
return new Subserver(Servertype.ARENA, serverName, port, () -> {
|
||||||
try {
|
try {
|
||||||
new ProcessBuilder("rm", "-r", "~/backbone/arenaserver/" + serverName).start();
|
System.out.println(new ProcessBuilder("rm", "-r", "/home/minecraft/backbone/arenaserver/" + serverName).start().exitValue());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new SecurityException("Could not clean up folder", 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, () -> {
|
new Bauserver(p.getName() + "s Bau", p.getUniqueId(), port, () -> {
|
||||||
try {
|
try {
|
||||||
new ProcessBuilder("rm", "-r", "~/backbone/arenaserver/" + p.getName()).start();
|
System.out.println(new ProcessBuilder("rm", "-r", "/home/minecraft/backbone/arenaserver/" + p.getName()).start().exitValue());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new SecurityException("Could not clean up folder", e);
|
throw new SecurityException("Could not clean up folder", e);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren