9ff7f39e8d
added localization as downloaded from the Master API interupted network communication no longer treated as unknown exception topstats prints the right message if no one qualifies angle adjustments move unflag to seperate command
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using SharedLibraryCore;
|
|
using SharedLibraryCore.Interfaces;
|
|
|
|
namespace IW4MAdmin.Plugins.ProfanityDeterment
|
|
{
|
|
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"
|
|
};
|
|
|
|
var loc = Utilities.CurrentLocalization.LocalizationIndex;
|
|
|
|
EnableProfanityDeterment = Utilities.PromptBool(loc["PLUGINS_PROFANITY_SETUP_ENABLE"]);
|
|
ProfanityWarningMessage = loc["PLUGINS_PROFANITY_WARNMSG"];
|
|
ProfanityKickMessage = loc["PLUGINS_PROFANITY_KICKMSG"];
|
|
KickAfterInfringementCount = 2;
|
|
|
|
return this;
|
|
}
|
|
|
|
public string Name() => "Configuration";
|
|
}
|
|
}
|