We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ModuleVersion
virtual
1 parent 38e2953 commit 748c9cdCopy full SHA for 748c9cd
managed/CounterStrikeSharp.API/Core/BasePlugin.cs
@@ -40,6 +40,8 @@ public abstract class BasePlugin : IPlugin
40
{
41
private bool _disposed;
42
43
+ internal string _version = "<unknown>";
44
+
45
public BasePlugin()
46
47
RegisterListener<Listeners.OnMapEnd>(() =>
@@ -52,7 +54,7 @@ public BasePlugin()
52
54
}
53
55
56
public abstract string ModuleName { get; }
- public abstract string ModuleVersion { get; }
57
+ public virtual string ModuleVersion { get => _version; }
58
59
public virtual string ModuleAuthor { get; }
60
@@ -650,4 +652,4 @@ protected virtual void Dispose(bool disposing)
650
652
_disposed = true;
651
653
654
-}
655
+}
0 commit comments