We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 409b258 commit 8054c14Copy full SHA for 8054c14
1 file changed
TLibrary/Models/Plugin/PluginBase.cs
@@ -192,6 +192,24 @@ public virtual void CheckPluginFiles()
192
}
193
194
195
+ // Log missing fields
196
+ foreach (var field in Config.GetType().GetProperties())
197
+ {
198
+ if (field.GetValue(Config) != null)
199
+ continue;
200
+
201
+ Logger.LogWarning($"The config field '{field.Name}' is missing in '{PluginName}' configuration.");
202
+ }
203
204
+ foreach (var field in Config.GetType().GetFields())
205
206
207
208
209
210
211
212
213
_logger.SetDebugMode(Config.DebugMode);
214
215
Dictionary<string, string> localLocalization = CommonLocalization ?? new Dictionary<string, string>();
0 commit comments