From b36d74da0e5ae11d94f2ee38e2ca5b3f35316bcc Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sun, 1 Nov 2026 07:35:56 +0100 Subject: [PATCH] Fix WorldIdentifier --- .../SpigotCore_Main/src/de/steamwar/core/WorldIdentifier.java | 4 +--- VelocityCore/src/de/steamwar/velocitycore/ServerStarter.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/WorldIdentifier.java b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/WorldIdentifier.java index a3c575d1..658729af 100644 --- a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/WorldIdentifier.java +++ b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/WorldIdentifier.java @@ -27,8 +27,6 @@ import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.level.Level; -import java.util.Locale; - @Linked public class WorldIdentifier { @@ -39,7 +37,7 @@ public class WorldIdentifier { } public static void setArena(String map) { - set("arena/" + Core.getVersion() + "/" + map.toLowerCase(Locale.ROOT).replaceAll("[^a-z0-9._-]", "")); + set("arena/" + Core.getVersion() + "/" + map); } public WorldIdentifier() { diff --git a/VelocityCore/src/de/steamwar/velocitycore/ServerStarter.java b/VelocityCore/src/de/steamwar/velocitycore/ServerStarter.java index 371f3e73..696048d5 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/ServerStarter.java +++ b/VelocityCore/src/de/steamwar/velocitycore/ServerStarter.java @@ -91,7 +91,7 @@ public class ServerStarter { gameMode = mode.configFile.getName().replace(".yml", ""); directory = new File(SERVER_PATH, mode.Server.Folder); arguments.put("config", mode.configFile.getName()); - arguments.put("arenaMap", map); + arguments.put("arenaMap", map.toLowerCase(Locale.ROOT).replace("[^a-z0-9._-]", "")); tempWorld(SERVER_PATH + mode.Server.Folder + "/arenas/" + map); startCondition = () -> { if (playersToSend.stream().anyMatch(player -> Subserver.isArena(Subserver.getSubserver(player)))) {