diff --git a/src/main/java/com/laytonsmith/core/Main.java b/src/main/java/com/laytonsmith/core/Main.java index afae2b4ef..37e36c82b 100644 --- a/src/main/java/com/laytonsmith/core/Main.java +++ b/src/main/java/com/laytonsmith/core/Main.java @@ -422,6 +422,7 @@ public ArgumentParser getArgumentParser() { @Override public void execute(ArgumentParser.ArgumentParserResults parsedArgs) throws Exception { + Prefs.init(MethodScriptFileLocations.getDefault().getPreferencesFile()); Telemetry.GetDefault().doNag(); String commandName = parsedArgs.getStringArgument("command"); Interpreter.install(commandName); @@ -459,6 +460,7 @@ public ArgumentParser getArgumentParser() { public void execute(ArgumentParser.ArgumentParserResults parsedArgs) throws Exception { // TODO: This should eventually be changed to use an independent // versioning scheme for CH and MS. + Prefs.init(MethodScriptFileLocations.getDefault().getPreferencesFile()); Telemetry.GetDefault().doNag(); StreamUtils.GetSystemOut().println("You are running " + Implementation.GetServerType().getBranding() + " version " + Static.loadSelfVersion()); @@ -537,6 +539,7 @@ public ArgumentParser getArgumentParser() { @Override @SuppressWarnings("ResultOfObjectAllocationIgnored") public void execute(ArgumentParser.ArgumentParserResults parsedArgs) throws Exception { + Prefs.init(MethodScriptFileLocations.getDefault().getPreferencesFile()); Telemetry.GetDefault().doNag(); new Interpreter(parsedArgs.getStringListArgument(), parsedArgs.getStringArgument("location-----")); } @@ -1668,6 +1671,7 @@ public ArgumentParser getArgumentParser() { @Override public void execute(ArgumentParser.ArgumentParserResults parsedArgs) throws Exception { + Prefs.init(MethodScriptFileLocations.getDefault().getPreferencesFile()); Telemetry.GetDefault().doNag(); Map topics = new HashMap<>(); for(ExtensionTracker t : ExtensionManager.getTrackers().values()) {