Skip to content

Commit

Permalink
🐛 Fetch convars values on config loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblefrog committed Apr 6, 2018
1 parent f794e55 commit 46b1d7d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sbpp_discord.sp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma semicolon 1

#define PLUGIN_AUTHOR "RumbleFrog, SourceBans++ Dev Team"
#define PLUGIN_VERSION "1.0.1"
#define PLUGIN_VERSION "1.0.2"

#include <sourcemod>
#include <sourcebanspp>
Expand Down Expand Up @@ -46,6 +46,12 @@ public void OnPluginStart()
Convars[Report].AddChangeHook(OnConvarChanged);
}

public void OnConfigsExecuted()
{
Convars[Ban].GetString(sEndpoints[Ban], sizeof sEndpoints[]);
Convars[Report].GetString(sEndpoints[Report], sizeof sEndpoints[]);
}

public void SBPP_OnBanPlayer(int iAdmin, int iTarget, int iTime, const char[] sReason)
{
SendReport(iAdmin, iTarget, sReason, iTime);
Expand Down

0 comments on commit 46b1d7d

Please sign in to comment.