Fixed many crashes with B14, added color customization

This commit is contained in:
Anuken
2018-01-31 00:35:27 -05:00
parent 0c4f3dc612
commit 5be256212c
17 changed files with 169 additions and 46 deletions

View File

@@ -73,7 +73,7 @@ public class ServerControl extends Module {
if(shuffle) {
Map previous = world.getMap();
Map map = previous;
while(map == previous) map = world.maps().getDefaultMaps().random();
while(map == previous || !map.visible) map = world.maps().getDefaultMaps().random();
info("Selected next map to be {0}.", map.name);
state.set(State.playing);
@@ -172,7 +172,7 @@ public class ServerControl extends Module {
return;
}
netCommon.sendMessage("[pink][[Server]:[] " + arg[0]);
netCommon.sendMessage("[DARK_GRAY][[Server]:[] " + arg[0]);
info("&lyServer: &lb{0}", arg[0]);
}).mergeArgs();