From b7f0eab471cafa022325d39ae9f6f4845c75d30d Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Thu, 22 Oct 2020 02:14:08 -0400 Subject: [PATCH] Add a big nag that you shouldn't use these builds yet --- .../main/java/com/velocitypowered/proxy/Velocity.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/Velocity.java b/proxy/src/main/java/com/velocitypowered/proxy/Velocity.java index 9185a4f40..ed8094cbe 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/Velocity.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/Velocity.java @@ -44,6 +44,16 @@ public class Velocity { * @param args the arguments to the proxy */ public static void main(String... args) { + logger.warn("Velocity 2.0.0 is under active development and WILL NOT WORK WITH YOUR" + + " EXISTING PLUGINS!"); + if (!Boolean.getBoolean("velocity.i-understand-what-im-doing")) { + logger.warn("Unless you are a developer, you shouldn't be using these builds."); + logger.warn("If you are very sure what you know what you're doing, run the proxy" + + " with the Java flag -Dvelocity.i-understand-what-im-doing=true."); + logger.warn("The proxy will now shut down."); + System.exit(1); + } + final ProxyOptions options = new ProxyOptions(args); if (options.isHelp()) { return;