Update OnCommand for core hook changes. (#181)

This commit is contained in:
AnchyDev
2024-06-18 06:27:48 +10:00
committed by GitHub
parent 36e1c715fc
commit c652ee8e1a

View File

@@ -330,7 +330,7 @@ class Eluna_CommandSC : public CommandSC
public:
Eluna_CommandSC() : CommandSC("Eluna_CommandSC") { }
bool CanExecuteCommand(ChatHandler& handler, std::string_view cmdStr) override
bool OnTryExecuteCommand(ChatHandler& handler, std::string_view cmdStr) override
{
if (!sEluna->OnCommand(handler, std::string(cmdStr).c_str()))
{