From 3f82347a9882c52bf327cf2517cd8060e2df3e5a Mon Sep 17 00:00:00 2001 From: Elier <71361901+Elierrr@users.noreply.github.com> Date: Thu, 19 May 2022 07:35:16 -0400 Subject: [PATCH] Update Main.java --- .../src/main/java/org/bukkit/craftbukkit/Main.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/NachoSpigot-Server/src/main/java/org/bukkit/craftbukkit/Main.java b/NachoSpigot-Server/src/main/java/org/bukkit/craftbukkit/Main.java index 6b62211ba..f0f01c05b 100644 --- a/NachoSpigot-Server/src/main/java/org/bukkit/craftbukkit/Main.java +++ b/NachoSpigot-Server/src/main/java/org/bukkit/craftbukkit/Main.java @@ -22,6 +22,13 @@ public class Main { public static boolean useConsole = true; public static void main(String[] args) { + if(System.getProperty("ignoreDeprecated") != true) { + System.err.println("NachoSpigot is no longer maintained or supported") + System.err.println("There are many unfixed bugs that will not be fixed") + System.err.println("It is recommended that you use a different 1.8 fork or use newer versions with backwards-compatibility plugins") + System.err.println("If you know what you're doing, you can continue using NachoSpigot by enabling the \"ignoreDeprecated\" JVM argument.") + System.exit(1); + } System.setProperty("log4j2.formatMsgNoLookups", "true"); try {