Fix WorldIdentifier

This commit is contained in:
2026-11-01 07:35:56 +01:00
parent 65958b1fdb
commit b36d74da0e
2 changed files with 2 additions and 4 deletions
@@ -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)))) {