Added build version warning for servers

This commit is contained in:
Anuken 2018-07-15 14:51:03 -04:00
parent 92a968217c
commit 9e3af13efc

View File

@ -74,6 +74,11 @@ public class ServerControl extends Module{
thread.setDaemon(true);
thread.start();
if(Version.build == -1){
err("WARNING: &lyYour server is running a custom build, which means that client checking is disabled.\n" +
"&lrWARNING: &lyIt is highly advised to specify which version you're using by building with gradle args &lc-Pbuildversion=&lm<build>&ly so that clients know which version you are using.");
}
Events.on(GameOverEvent.class, () -> {
info("Game over!");