Too many things to list in a single line commit log

This commit is contained in:
Anuken
2019-03-20 22:40:47 -04:00
parent e2126a2693
commit 886b62bbad
149 changed files with 1530 additions and 1253 deletions

View File

@@ -259,6 +259,16 @@ public class ServerControl implements ApplicationListener{
info("&lyMap directory: &lb&fi{0}", customMapDirectory.file().getAbsoluteFile().toString());
});
handler.register("reloadmaps", "Reload all maps from disk.", arg -> {
int beforeMaps = world.maps.all().size;
world.maps.reload();
if(world.maps.all().size > beforeMaps){
info("&lc{0}&ly new map(s) found and reloaded.", world.maps.all().size - beforeMaps);
}else{
info("&lyMaps reloaded.");
}
});
handler.register("status", "Display server status.", arg -> {
if(state.is(State.menu)){
info("Status: &rserver closed");