Refactor plugin loading. All active plugins must now be listed in torch.cfg

This commit is contained in:
Brant Martin
2019-05-03 21:39:56 -04:00
parent c7651c9949
commit 9813d6946a
6 changed files with 109 additions and 60 deletions

View File

@@ -59,7 +59,11 @@ namespace Torch.Server
public int TickTimeout { get; set; } = 60;
/// <inheritdoc />
public List<string> Plugins { get; set; } = new List<string>();
[Arg("plugins", "Starts Torch with the given plugin GUIDs (space delimited).")]
public List<Guid> Plugins { get; set; } = new List<Guid>();
[Arg("localplugins", "Loads all pluhins from disk, ignores the plugins defined in config.")]
public bool LocalPlugins { get; set; }
public string ChatName { get; set; } = "Server";