Helper : Chat Notification

  • Autowire : TRUE This service can be autowired into your services.
  • Class : eXpansion\Framework\Core\Helpers\ChatNotification

The chat notification helper allows to send chat message to players ingame. It can be used to either send a message to a single user or to a group of users with proper translations.

The chat provider will also allow to add chat decorations to add color to the chat (See Translations Helper for more details.)

Method Description
sendMessage Send message to a user or more
  messageId : The message to send, can be translation key to be translated before being sent.
  to : Login of the player to send the message to, or null to send it to everyone, or list of logins to send the message to
  Parameters : List of parameters to insert into the trasnlation variables