mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
Add a big nag that you shouldn't use these builds yet
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user