Fixed build shader / Server now displays map directory

This commit is contained in:
Anuken
2019-02-06 13:59:10 -05:00
parent 4f9e64588f
commit 25658f2a0a
4 changed files with 13 additions and 12 deletions

View File

@ -244,10 +244,15 @@ public class ServerControl implements ApplicationListener{
});
handler.register("maps", "Display all available maps.", arg -> {
info("Maps:");
for(Map map : world.maps.all()){
info(" &ly{0}: &lb&fi{1} / {2}x{3}", map.name, map.custom ? "Custom" : "Default", map.meta.width, map.meta.height);
if(!world.maps.all().isEmpty()){
info("Maps:");
for(Map map : world.maps.all()){
info(" &ly{0}: &lb&fi{1} / {2}x{3}", map.name, map.custom ? "Custom" : "Default", map.meta.width, map.meta.height);
}
}else{
info("No maps found.");
}
info("&lyMap directory: &lb&fi{0}", customMapDirectory.file().getAbsoluteFile().toString());
});
handler.register("status", "Display server status.", arg -> {