mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
Merge pull request #1255 from wrefgtzweve/add-cmd-hook
Add hook `PACCanRunConsoleCommand`
This commit is contained in:
commit
de33853862
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user