mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Added build version warning for servers
This commit is contained in:
parent
92a968217c
commit
9e3af13efc
@ -74,6 +74,11 @@ public class ServerControl extends Module{
|
|||||||
thread.setDaemon(true);
|
thread.setDaemon(true);
|
||||||
thread.start();
|
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, () -> {
|
Events.on(GameOverEvent.class, () -> {
|
||||||
info("Game over!");
|
info("Game over!");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user