h1z1-server
    Preparing search index...
    Index

    Constructors

    Accessors

    Methods

    • Hooks a method by overriding its default behavior.

      Parameters

      • plugin: BasePlugin

        The plugin instance ("this")

      • thisArg: any

        The object on which the method is defined.

      • methodName: string

        The name of the method to be hooked.

      • hook: (...args: any[]) => boolean | void

        A function that will be called during the hooking process.

      • options: { callAfter: boolean; callBefore: boolean }

        Options for controlling the hooking behavior. Specifies whether to call the original method before/after the hook.

      Returns void