Function createServerPlugin

  • Creates a server plugin.

    Type Parameters

    • T extends O

      The server events, a record mapping event names to their payload types.

    • G extends O

      The game state, a record mapping defining the types of the game state object.

    • C extends void | O

      The configuration type for the plugin.

    Parameters

    Returns ServerPlugin<T, G, C>

    The created plugin.