Merge pull request #1255 from wrefgtzweve/add-cmd-hook

Add hook `PACCanRunConsoleCommand`
This commit is contained in:
Redox 2022-11-09 18:17:27 +01:00 committed by GitHub
commit de33853862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,7 @@ function PART:Execute()
pac.Message(tostring(self) .. ' - '.. msg)
end
else
if hook.Run("PACCanRunConsoleCommand", self.String) == false then return end
ent:ConCommand(self.String)
end
end