Printing java version and os on startup

This commit is contained in:
Lenni0451 2023-04-08 15:08:51 +02:00
parent 5dfe2f5a74
commit 1c5d6b22d2

View File

@ -95,6 +95,7 @@ public class ViaProxy {
final boolean hasUI = args.length == 0 && !GraphicsEnvironment.isHeadless(); final boolean hasUI = args.length == 0 && !GraphicsEnvironment.isHeadless();
ConsoleHandler.hookConsole(); ConsoleHandler.hookConsole();
Logger.LOGGER.info("Initializing ViaProxy {} v{} (Injected using {})...", hasUI ? "GUI" : "CLI", VERSION, injectionMethod); Logger.LOGGER.info("Initializing ViaProxy {} v{} (Injected using {})...", hasUI ? "GUI" : "CLI", VERSION, injectionMethod);
Logger.LOGGER.info("Using java version: " + System.getProperty("java.vm.name") + " " + System.getProperty("java.version") + " (" + System.getProperty("java.vendor") + ") on " + System.getProperty("os.name"));
loadNetty(); loadNetty();
saveManager = new SaveManager(); saveManager = new SaveManager();
PluginManager.loadPlugins(); PluginManager.loadPlugins();