We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c019ba commit d6556d7Copy full SHA for d6556d7
Code/Plugin/Config.cs
@@ -2,6 +2,8 @@
2
3
public class Config
4
{
5
+ public bool IsEnabled { get; set; } = true;
6
+
7
public bool SerMethodsAsCommands { get; set; } = false;
8
9
public bool SendHelpMessageOnServerInitialization { get; set; } = true;
Code/Plugin/MainPlugin.cs
@@ -59,8 +59,14 @@ public enum Contribution
59
60
public override void Enable()
61
62
+ if (Config?.IsEnabled is false)
63
+ {
64
+ Logger.Info("Scripted Events Reloaded is disabled via config.");
65
+ return;
66
+ }
67
68
Instance = this;
-
69
70
Script.StopAll();
71
EventHandler.Initialize();
72
MethodIndex.Initialize();
0 commit comments