From 9e3af13efc4aadda1080080432b3ef091598bb41 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 15 Jul 2018 14:51:03 -0400 Subject: [PATCH] Added build version warning for servers --- server/src/io/anuke/mindustry/server/ServerControl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/io/anuke/mindustry/server/ServerControl.java b/server/src/io/anuke/mindustry/server/ServerControl.java index 7cff7e1711..73f2ad89e4 100644 --- a/server/src/io/anuke/mindustry/server/ServerControl.java +++ b/server/src/io/anuke/mindustry/server/ServerControl.java @@ -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&ly so that clients know which version you are using."); + } + Events.on(GameOverEvent.class, () -> { info("Game over!");