You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmmmm, that should be possible by modifying the last_init method, and plugin_load mechanism, and modifying add_hook in the plugin class to register the handler for the given hook.
Note that I also added the handle_frame event which is called once per server frame, i.e. 40 times per second on default server settings to your list of events that maybe should be hot pluggable.
For example:
damage
hook added new hook, handler and dispatcher for any damage events happening #120minqlx.register_handler("damage", handle_damage)
is executed from PR above.When damage is registered QLDS runs python code around
handle_damage
andminqlx/python/minqlx/_events.py
Lines 41 to 98 in 390d6c1
So it would be better, if
minqlx.register_handler("damage", handle_damage)
only if plugin or minqlx itself requires it.That also concerns to other hooks below, but comparing to
damage
hook, they are executed less frequentlyThe text was updated successfully, but these errors were encountered: