This commit is contained in:
alice
2025-08-17 03:20:08 +02:00
parent 4ddb2ccd05
commit 3229243529

View File

@@ -11,6 +11,7 @@
#include <utils/string.hpp>
#include <utils/memory.hpp>
#include <utils/hook.hpp>
#include <utils/flags.hpp>
namespace command
{
@@ -270,7 +271,11 @@ namespace command
void on_startup([[maybe_unused]] plugin::plugin* plugin) override
{
scripting::on_shutdown(clear);
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)
{