Summary

Functions

Overrides hook.Call so that plugin and schema hooks from the hook cache are called before the regular hooks.

Functions

hook.Call(name, gm, ...)

shared lib/plugin.lua:1275

Overrides hook.Call so that plugin and schema hooks from the hook cache are called before the regular hooks. Development variant: handlers are run with pcall, failures are printed and reported through the OnHookError hook.

Parameters

  • name String hook name
  • gm Map gamemode table, or nil to skip gamemode hooks
  • ... Vararg arguments to pass to the handlers

Returns

  • Any values returned by the first handler that returned non-nil (cached plugin hooks pass on six values at most)

Otherwise lib/plugin.lua:1314

When Flux.development does not hold:

Overrides hook.Call so that plugin and schema hooks from the hook cache are called before the regular hooks. Production variant: handlers are called without pcall.

Defined in

Defined in