From 32292435293a1c84aadbf7b5f17752e8d41f68e4 Mon Sep 17 00:00:00 2001 From: alice <58637860+alicealys@users.noreply.github.com> Date: Sun, 17 Aug 2025 03:20:08 +0200 Subject: [PATCH] fix #23 --- src/component/command.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/component/command.cpp b/src/component/command.cpp index d55ed16..428b7f8 100644 --- a/src/component/command.cpp +++ b/src/component/command.cpp @@ -11,6 +11,7 @@ #include #include #include +#include namespace command { @@ -270,7 +271,11 @@ namespace command void on_startup([[maybe_unused]] plugin::plugin* plugin) override { scripting::on_shutdown(clear); - client_command_hook.create(SELECT_VALUE(0x4AF770, 0x63DB70), client_command_stub); + + if (!utils::flags::has_flag("disable-client-command")) + { + client_command_hook.create(SELECT_VALUE(0x4AF770, 0x63DB70), client_command_stub); + } gsc::function::add_multiple([](const std::string& command) {