From b88b3717c38197228e4c0caa71ccba4741f38835 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sat, 20 May 2023 21:08:59 -0400 Subject: [PATCH] Add initial startup message this is so the server appears like its preparing to start --- .../java/emu/grasscutter/Grasscutter.java | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/main/java/emu/grasscutter/Grasscutter.java b/src/main/java/emu/grasscutter/Grasscutter.java index 47be2d310..e254ad893 100644 --- a/src/main/java/emu/grasscutter/Grasscutter.java +++ b/src/main/java/emu/grasscutter/Grasscutter.java @@ -1,8 +1,5 @@ package emu.grasscutter; -import static emu.grasscutter.config.Configuration.SERVER; -import static emu.grasscutter.utils.lang.Language.translate; - import ch.qos.logback.classic.Level; import ch.qos.logback.classic.Logger; import emu.grasscutter.auth.AuthenticationSystem; @@ -33,12 +30,6 @@ import emu.grasscutter.utils.JsonUtils; import emu.grasscutter.utils.StartupArguments; import emu.grasscutter.utils.Utils; import emu.grasscutter.utils.lang.Language; -import java.io.File; -import java.io.FileWriter; -import java.io.IOError; -import java.io.IOException; -import java.util.Calendar; -import javax.annotation.Nullable; import lombok.Getter; import lombok.Setter; import org.jline.reader.EndOfFileException; @@ -50,6 +41,16 @@ import org.jline.terminal.TerminalBuilder; import org.reflections.Reflections; import org.slf4j.LoggerFactory; +import javax.annotation.Nullable; +import java.io.File; +import java.io.FileWriter; +import java.io.IOError; +import java.io.IOException; +import java.util.Calendar; + +import static emu.grasscutter.config.Configuration.SERVER; +import static emu.grasscutter.utils.lang.Language.translate; + public final class Grasscutter { public static final File configFile = new File("./config.json"); public static final Reflections reflector = new Reflections("emu.grasscutter"); @@ -88,6 +89,8 @@ public final class Grasscutter { // Attempt to update configuration. ConfigContainer.updateConfig(); + Grasscutter.getLogger().info("Loading Grasscutter..."); + // Load translation files. Grasscutter.loadLanguage();