This commit is contained in:
Anuken 2025-05-16 14:14:09 -04:00
parent 4abbd1a0f8
commit adb7264bc4

View file

@ -381,12 +381,15 @@ public class ServerControl implements ApplicationListener{
}
}else{
result = maps.getShuffleMode().next(preset, state.map);
if(result != null){
info("Randomized next map to be @.", result.plainName());
}
}
info("Loading map...");
logic.reset();
if(result != null){
lastMode = preset;
Core.settings.put("lastServerMode", lastMode.name());
try{
@ -400,6 +403,7 @@ public class ServerControl implements ApplicationListener{
}catch(MapException e){
err("@: @", e.map.plainName(), e.getMessage());
}
}
});
handler.register("maps", "[all/custom/default]", "Display available maps. Displays only custom maps by default.", arg -> {