Admin immunity + Discord
- Fixed command logging + small refactor - Fixed admin immunity - Separated penalty webhook - More customizable penalty webhook
This commit is contained in:
parent
bb0a236f28
commit
c4cb308147
12 changed files with 222 additions and 250 deletions
|
|
@ -27,10 +27,10 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
|||
private static bool _tagsDetected;
|
||||
public static bool VoteInProgress = false;
|
||||
public static int? ServerId = null;
|
||||
public static bool UnlockedCommands = CoreConfig.UnlockConCommands;
|
||||
private static readonly bool UnlockedCommands = CoreConfig.UnlockConCommands;
|
||||
|
||||
public static DiscordWebhookClient? DiscordWebhookClientLog;
|
||||
public static DiscordWebhookClient? DiscordWebhookClientPenalty;
|
||||
// public static DiscordWebhookClient? DiscordWebhookClientPenalty;
|
||||
|
||||
private string _dbConnectionString = string.Empty;
|
||||
private static Database.Database? _database;
|
||||
|
|
@ -120,8 +120,10 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
|||
|
||||
if (!string.IsNullOrEmpty(Config.Discord.DiscordLogWebhook))
|
||||
DiscordWebhookClientLog = new DiscordWebhookClient(Config.Discord.DiscordLogWebhook);
|
||||
/*
|
||||
if (!string.IsNullOrEmpty(Config.Discord.DiscordPenaltyWebhook))
|
||||
DiscordWebhookClientPenalty = new DiscordWebhookClient(Config.Discord.DiscordPenaltyWebhook);
|
||||
*/
|
||||
|
||||
PluginInfo.ShowAd(ModuleVersion);
|
||||
if (Config.EnableUpdateCheck)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue