Class AirshipChatSingleton

Access using Airship.Chat. Functions for configuring the chat window as well as broadcasting messages.

To send a player a message see Player.SendMessage.

Properties

onChatMessage: Signal<ChatMessageEvent> = ...

Event fired when a player chats.

  • If the chat message is a command this will not fire.
  • Can be cancelled to prevent the message from going through.
  • Message and nametag can be modified to change what is displayed.
  • Yielding in a callback will delay the message from being processed.

Methods

  • Broadcasts message to entire server, if called from server. Otherwise, broadcasts message to only local player.

    Parameters

    • message: string

      A message.

    Returns void

  • [Server only]

    Registers provided command.

    Parameters

    Returns void

  • [Client only]

    Sets chat's visibility.

    Parameters

    • val: boolean

      Whether or not chat should be visible.

    Returns void