diff --git a/Server/Hotfix/Module/Repl/ReplComponentSystem.cs b/Server/Hotfix/Module/Repl/ReplComponentSystem.cs index 420d1f90a10a50812d9092291d29dd0425de0b54..ad0ddd25a1a1b7cb2dfa152f8c59adc6d279a19c 100644 --- a/Server/Hotfix/Module/Repl/ReplComponentSystem.cs +++ b/Server/Hotfix/Module/Repl/ReplComponentSystem.cs @@ -12,9 +12,11 @@ namespace ETHotfix { public override void Start(ReplComponent self) { - self.ScriptOptions = ScriptOptions.Default.WithFilePath(Environment.CurrentDirectory) - .AddReferences(typeof (ReplComponent).Assembly); - + self.ScriptOptions = ScriptOptions.Default + .WithMetadataResolver(ScriptMetadataResolver.Default.WithBaseDirectory(Environment.CurrentDirectory)) + .AddReferences(typeof (ReplComponent).Assembly) + .AddImports("System"); + self.Run().NoAwait(); } } @@ -48,7 +50,7 @@ namespace ETHotfix line = line.Trim(); - if (line == "quit") + if (line == "exit") { self.ScriptState = null; continue;