Add file name printing (#5093)

This commit is contained in:
Skat 2021-04-11 17:26:47 +04:00 committed by GitHub
parent aef7709764
commit a55039447a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,7 +339,11 @@ public class ServerControl implements ApplicationListener{
if(!maps.all().isEmpty()){
info("Maps:");
for(Map map : maps.all()){
info(" @: &fi@ / @x@", map.name().replace(' ', '_'), map.custom ? "Custom" : "Default", map.width, map.height);
if(map.custom){
info(" @ (@): &fiCustom / @x@", map.name().replace(' ', '_'), map.file.name(), map.width, map.height);
}else{
info(" @: &fiDefault / @x@", map.name().replace(' ', '_'), map.width, map.height);
}
}
}else{
info("No maps found.");