9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-22 16:29:23 +00:00

load it here

This commit is contained in:
NONPLAYT
2025-07-17 02:00:55 +03:00
parent 20f3fab40f
commit cd8ddb5dc6
2 changed files with 23 additions and 18 deletions

View File

@@ -68,19 +68,6 @@ public class DivineBootstrap {
System.setProperty("jdk.console", "java.base");
SharedConstants.tryDetectVersion();
Path path2 = Paths.get("eula.txt");
Eula eula = new Eula(path2);
boolean eulaAgreed = Boolean.getBoolean("com.mojang.eula.agree");
if (eulaAgreed) {
LOGGER.error("You have used the Spigot command line EULA agreement flag.");
LOGGER.error("By using this setting you are indicating your agreement to Mojang's EULA (https://aka.ms/MinecraftEULA).");
LOGGER.error("If you do not agree to the above EULA please stop your server and remove this flag immediately.");
}
if (!eula.hasAgreedToEULA() && !eulaAgreed) {
LOGGER.info("You need to agree to the EULA in order to run the server. Go to eula.txt for more info.");
System.exit(0);
}
getStartupVersionMessages().forEach(LOGGER::info);
} catch (Throwable t) {
t.printStackTrace();