Jump to content

Hook Fires

Pending 2.0.164

IIIaKa
IIIaKa

Posted (edited)

Carbon v2.0.165.0

Hello, you have the c.plugins command, and there's a column called "Hook Fires".
Am I correct in understanding that this value indicates how many times hooks have been triggered? If so, there seems to be an issue with it because, for example, if you add a hook like OnNpcTarget to a plugin, this number will increase rapidly, even though there are no calls to this hook in the plugin itself.

In a span of 2 minutes, the plugin Test(with the OnNpcTarget hook) increased its value to 126,000, while the plugin Test2(without the hook) remained unchanged.
If we are to believe that there were 126,000 calls, then why isn't there a single output in the console from the PrintWarning method, which is inside this hook?
In 15 minutes, this number has already reached 450,000.

n3qFEhE.png

Test.cs Test2.cs

Edited by IIIaKa

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.5k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.