Update ExamplePlugin.cs

This commit is contained in:
JustArchi 2020-04-18 18:47:49 +02:00
parent 7b9bec217a
commit a3e8ed3df3

View file

@ -44,7 +44,7 @@ namespace ArchiSteamFarm.CustomPlugins.ExamplePlugin {
// This will be displayed to the user and written in the log file, typically you should point it to the version of your library, but alternatively you can do some more advanced logic if you'd like to
// Please note that this property can have direct dependencies only on structures that were initialized by the constructor, as it's possible to be called before OnLoaded() takes place
public Version Version => typeof(ExamplePlugin).Assembly.GetName().Version ?? new Version(1, 0);
public Version Version => typeof(ExamplePlugin).Assembly.GetName().Version ?? throw new ArgumentNullException(nameof(Version));
// This method, apart from being called before any bot initialization takes place, allows you to read custom global config properties that are not recognized by ASF
// Thanks to that, you can extend default ASF config with your own stuff, then parse it here in order to customize your plugin during runtime