2018-04-10 20:36:28 -04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using SharedLibraryCore;
|
|
|
|
|
using SharedLibraryCore.Interfaces;
|
2018-03-29 00:40:57 -04:00
|
|
|
|
|
2018-04-10 20:36:28 -04:00
|
|
|
|
namespace IW4MAdmin.Plugins.ProfanityDeterment
|
2018-03-29 00:40:57 -04:00
|
|
|
|
{
|
|
|
|
|
class Configuration : IBaseConfiguration
|
|
|
|
|
{
|
|
|
|
|
public List<string> OffensiveWords { get; set; }
|
|
|
|
|
public bool EnableProfanityDeterment { get; set; }
|
|
|
|
|
public string ProfanityWarningMessage { get; set; }
|
|
|
|
|
public string ProfanityKickMessage { get; set; }
|
|
|
|
|
public int KickAfterInfringementCount { get; set; }
|
|
|
|
|
|
|
|
|
|
public IBaseConfiguration Generate()
|
|
|
|
|
{
|
|
|
|
|
OffensiveWords = new List<string>()
|
|
|
|
|
{
|
|
|
|
|
"nigger",
|
|
|
|
|
"nigga",
|
|
|
|
|
"fuck"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
EnableProfanityDeterment = Utilities.PromptBool("Enable profanity deterring");
|
|
|
|
|
ProfanityWarningMessage = "Please do not use profanity on this server";
|
|
|
|
|
ProfanityKickMessage = "Excessive use of profanity";
|
|
|
|
|
KickAfterInfringementCount = 2;
|
|
|
|
|
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name() => "Configuration";
|
|
|
|
|
}
|
|
|
|
|
}
|