fix(GetEventData): Changed settings.protections to settings.script_protections

This commit is contained in:
Yimura 2021-01-17 00:47:37 +01:00
parent 6b9467c9ac
commit 241232f6e7
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78

View File

@ -13,7 +13,7 @@ namespace big
if (result && player < 32)
{
auto hash = args[0];
auto &protections = g_settings.options["settings"]["protections"];
auto &protections = g_settings.options["settings"]["script_protections"];
char type[32] = "";
@ -119,6 +119,8 @@ namespace big
if (protections["kick"])
{
if (hash == 1317868303 || hash == 495824472) return false;
for (int64_t kick_hash : kick_hashes)
{
if (hash == kick_hash)