diff --git a/addons/sourcemod/scripting/surftimer/convars.sp b/addons/sourcemod/scripting/surftimer/convars.sp index 6cd5377..f70af66 100644 --- a/addons/sourcemod/scripting/surftimer/convars.sp +++ b/addons/sourcemod/scripting/surftimer/convars.sp @@ -112,6 +112,8 @@ char g_szRelativeSoundPathWRCP[PLATFORM_MAX_PATH]; ConVar g_hMustPassCheckpoints = null; ConVar g_hSlayOnRoundEnd = null; ConVar g_hLimitSpeedType = null; +ConVar g_dcCalladminName = null; +ConVar g_dcBugTrackerName = null; void CreateConVars() { @@ -157,6 +159,8 @@ void CreateConVars() g_hBackupReplays = CreateConVar("ck_replay_backup", "1", "(1 / 0) Back up replay files, when they are being replaced", FCVAR_NOTIFY, true, 0.0, true, 1.0); g_hReplaceReplayTime = CreateConVar("ck_replay_replace_faster", "1", "(1 / 0) Replace record bots if a players time is faster than the bot, even if the time is not a server record.", FCVAR_NOTIFY, true, 0.0, true, 1.0); g_hTeleToStartWhenSettingsLoaded = CreateConVar("ck_teleportclientstostart", "1", "(1 / 0) Teleport players automatically back to the start zone, when their settings have been loaded.", FCVAR_NOTIFY, true, 0.0, true, 1.0); + g_dcCalladminName = CreateConVar("ck_discord_calladmin_name", "z4lab Calladmin", "Webhook name for !calladmin - Discord side", FCVAR_NOTIFY); + g_dcBugTrackerName = CreateConVar("ck_discord_bug_tracker_name", "z4lab Bugtracker", "Webhook name for !bug - Discord side", FCVAR_NOTIFY); g_hPointSystem = CreateConVar("ck_point_system", "1", "on/off - Player point system", FCVAR_NOTIFY, true, 0.0, true, 1.0); HookConVarChange(g_hPointSystem, OnSettingChanged); diff --git a/addons/sourcemod/scripting/surftimer/misc.sp b/addons/sourcemod/scripting/surftimer/misc.sp index 39b2a1c..2ba29c8 100644 --- a/addons/sourcemod/scripting/surftimer/misc.sp +++ b/addons/sourcemod/scripting/surftimer/misc.sp @@ -4521,7 +4521,10 @@ public void SendBugReport(int client) DiscordWebHook hook = new DiscordWebHook(webhook); hook.SlackMode = true; - hook.SetUsername("z4lab Bugtracker"); + char dcBugTrackerName[64]; + GetConVarString(g_dcBugTrackerName, dcBugTrackerName, sizeof(dcBugTrackerName)); + + hook.SetUsername(dcBugTrackerName); MessageEmbed Embed = new MessageEmbed(); @@ -4557,7 +4560,10 @@ public void CallAdmin(int client, char[] sText) DiscordWebHook hook = new DiscordWebHook(webhook); hook.SlackMode = true; - hook.SetUsername("z4lab Calladmin"); + char dcCalladminName[64]; + GetConVarString(g_dcCalladminName, dcCalladminName, sizeof(dcCalladminName)); + + hook.SetUsername(dcCalladminName); MessageEmbed Embed = new MessageEmbed();