mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Update ExamplePlugin.cs
This commit is contained in:
parent
7b9bec217a
commit
a3e8ed3df3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue