Перейти к основному содержанию

ConfigureMultiplayer

Callable

  • ConfigureMultiplayer(args: { isClientOnly: boolean; name?: string; version?: string }): void

  • Function that must be written in launcher.js to enable multiplayer configuration. Client mods must not affect on the world. They will not be taken into account in mod synchronization during the connection.


    Parameters

    • args: { isClientOnly: boolean; name?: string; version?: string }
      • isClientOnly: boolean

        If true, mod is only client.

      • optionalname: string = “auto”

        Unique readable network name of the mod.

        More about capabilities

        Value "auto" here means determine mod.info property, which is preferred in most cases.

      • optionalversion: string = “auto”

        Mod version.

        More about capabilities

        Value "auto" here means determine mod.info property, which is preferred in most cases.

    Returns void