1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 23:58:08 -05:00

Profanity small refactor/cleanup + nullability.

This commit is contained in:
Ayymoss
2024-07-14 20:22:54 +01:00
parent 2464c58ccf
commit d0a022f897
3 changed files with 38 additions and 68 deletions

View File

@ -6,10 +6,10 @@ namespace IW4MAdmin.Plugins.ProfanityDeterment
{
public class ProfanityDetermentConfiguration : IBaseConfiguration
{
public List<string> OffensiveWords { get; set; }
public List<string> OffensiveWords { get; set; } = [];
public bool EnableProfanityDeterment { get; set; }
public string ProfanityWarningMessage { get; set; }
public string ProfanityKickMessage { get; set; }
public required string ProfanityWarningMessage { get; set; }
public required string ProfanityKickMessage { get; set; }
public int KickAfterInfringementCount { get; set; }
public bool KickOnInfringingName { get; set; } = true;