Added a way for organizations to prohibit providers (#1105)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-22 18:57:12 +02:00
1 parent 052868b24e
commit 7ba5f01388
38 files changed
+1488 -629

No files matched your search

@@ -581,6 +581,14 @@ public static partial class ManagedConfiguration
// Step 3 -- try to parse the string as the target type:
if (EnumNames.TryParse(typeof(TValue), configuredLuaValueText, out var configuredEnum))
set.Add((TValue)configuredEnum);
//
// Dropped, but not quietly: such a set may prohibit something, and a typo would
// otherwise leave it allowed without anybody noticing. A dry run comes before
// the actual one, so only the actual one reports it:
//
else if (!dryRun)
Log.LogWarning($"The configuration plugin '{configPluginId}' names '{configuredLuaValueText}' in the setting '{configMeta.SettingName}', which is no valid value. Ignoring it.");
}
}