Skip to main content

BlockEngine

Index

Functions

getGameVersion

  • getGameVersion(): number[]
  • Returns number[]

    game version as array

getMainGameVersion

  • getMainGameVersion(): number
  • Returns number

    main game version number

sendMessage

  • sendMessage(client: NetworkClient, message: string, ...params: string[]): void
  • sendMessage(client: NetworkClient, color: EColor, message: string, ...params: string[]): void
  • Sends packet with message which will be translated by the client, the message can be parametrized using '%s' symbols as placeholders.


    Parameters

    • client: NetworkClient

      receiver client

    • message: string

      unlocalized string

    • rest...params: string[]

      array of unlocalized substrings that will be substituted into the message after translation

    Returns void

sendUnlocalizedMessage

  • sendUnlocalizedMessage(client: NetworkClient, ...texts: string[]): void
  • Sends packet with message which will be translated by the client.

    That feature is obsolete

    Use sendMessage instead.


    Parameters

    Returns void