Update ExamplePlugin.cs

This commit is contained in:
JustArchi
2020-04-18 17:05:29 +02:00
parent 0bbe8bf2b4
commit cd848bf2bb

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;
public Version Version => typeof(ExamplePlugin).Assembly.GetName().Version ?? new Version(1, 0);
// 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