From c4d5c13b29faf57bc36fca2678927498cd6d120e Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 21 May 2020 09:10:08 +0200 Subject: [PATCH] Wait short befor testarena start if bauserver previously running Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/BauCommand.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index d5142a25..412e96dd 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -210,6 +210,11 @@ public class BauCommand { return; } subserver.stop(); + try { + Thread.sleep(200); // Wait until possible testarena-World has been deleted + } catch (InterruptedException e) { + throw new SecurityException("Subserver stop interrupted", e); + } break; } }