From bd7e2467e762b5310a8a5411d396ac12275c0bb0 Mon Sep 17 00:00:00 2001 From: Yimura Date: Mon, 16 May 2022 12:49:21 +0200 Subject: [PATCH] fix(ScriptEventHandler): Actually catch bad hashes --- BigBaseV2/src/hooks/script_event_handler.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/BigBaseV2/src/hooks/script_event_handler.cpp b/BigBaseV2/src/hooks/script_event_handler.cpp index efbd267e..3a39a91d 100644 --- a/BigBaseV2/src/hooks/script_event_handler.cpp +++ b/BigBaseV2/src/hooks/script_event_handler.cpp @@ -65,6 +65,14 @@ namespace big return true; } break; + case eRemoteEvent::Crash: + if (g->protections.script_events.crash) + { + format_string(player_name, "TSE Crash", notify.crash.log, notify.crash.notify); + + return true; + } + break; case eRemoteEvent::FakeDeposit: if (g->protections.script_events.fake_deposit) { @@ -89,6 +97,14 @@ namespace big return true; } break; + case eRemoteEvent::MCTeleport: + if (g->protections.script_events.mc_teleport) + { + format_string(player_name, "MC Teleport", notify.mc_teleport.log, notify.mc_teleport.notify); + + return true; + } + break; case eRemoteEvent::NetworkBail: if (g->protections.script_events.network_bail) {