From 04dd7d655c016eda010a063155fe1ebf69518ee0 Mon Sep 17 00:00:00 2001 From: microwin7 Date: Fri, 30 Jun 2023 16:22:22 +0300 Subject: [PATCH] [ANY] Case ignoring for commands in ServerWrapper (#657) --- .../main/java/pro/gravit/launcher/server/ServerWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java b/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java index 61fa66a9..fdcfd42f 100644 --- a/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java +++ b/ServerWrapper/src/main/java/pro/gravit/launcher/server/ServerWrapper.java @@ -98,14 +98,14 @@ public void run(String... args) throws Throwable { GetAvailabilityAuthRequest.registerProviders(); OptionalAction.registerProviders(); OptionalTrigger.registerProviders(); - if (args.length > 0 && args[0].equals("setup") && !disableSetup) { + if (args.length > 0 && args[0].equalsIgnoreCase("setup") && !disableSetup) { LogHelper.debug("Read ServerWrapperConfig.json"); loadConfig(); ServerWrapperSetup setup = new ServerWrapperSetup(); setup.run(); System.exit(0); } - if (args.length > 1 && args[0].equals("installAuthlib") && !disableSetup) { + if (args.length > 1 && args[0].equalsIgnoreCase("installAuthlib") && !disableSetup) { LogHelper.debug("Read ServerWrapperConfig.json"); loadConfig(); InstallAuthlib command = new InstallAuthlib();