geforkt von SteamWar/BungeeCore
Hotfix waiting for world deletion
Dieser Commit ist enthalten in:
Ursprung
a9cd5e1288
Commit
8ff9ca5fd3
@ -116,8 +116,8 @@ public class SubserverSystem {
|
|||||||
if(eventFightID == -1)
|
if(eventFightID == -1)
|
||||||
return new Bauserver(serverName, player1, port, process, () -> {
|
return new Bauserver(serverName, player1, port, process, () -> {
|
||||||
try {
|
try {
|
||||||
new ProcessBuilder("rm", "-r", ARENA_PATH + finalMapName).start();
|
new ProcessBuilder("rm", "-r", ARENA_PATH + finalMapName).start().waitFor();
|
||||||
} catch (IOException e) {
|
} catch (IOException | InterruptedException e) {
|
||||||
throw new SecurityException("Could not clean up folder", e);
|
throw new SecurityException("Could not clean up folder", e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -127,8 +127,8 @@ public class SubserverSystem {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
new ProcessBuilder("rm", "-r", ARENA_PATH + finalMapName).start();
|
new ProcessBuilder("rm", "-r", ARENA_PATH + finalMapName).start().waitFor();
|
||||||
} catch (IOException e) {
|
} catch (IOException | InterruptedException 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