From 87ccd1a6d89e951c88f064999415dbcda92f132b Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 4 Dec 2021 07:57:06 +0100 Subject: [PATCH] Fix possible world names for paper Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/SubserverSystem.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/SubserverSystem.java b/src/de/steamwar/bungeecore/SubserverSystem.java index 9e08df5c..877dec8e 100644 --- a/src/de/steamwar/bungeecore/SubserverSystem.java +++ b/src/de/steamwar/bungeecore/SubserverSystem.java @@ -96,6 +96,8 @@ public class SubserverSystem { if(mapName == null) mapName = serverName; + mapName = mapName.replace(' ', '_').replace("[", "").replace("]", ""); + String worldDir; if(eventFightID > 0) worldDir = EVENT_PATH; @@ -138,7 +140,7 @@ public class SubserverSystem { 0, 0, serverName, - serverName.replace(' ', '_') + eventFight.getStartTime().toLocalDateTime().format(DateTimeFormatter.ISO_TIME), + serverName + eventFight.getStartTime().toLocalDateTime().format(DateTimeFormatter.ISO_TIME), null, null, false);