Chat Messages

We implemented an abstraction that will provide auto multicall and auto prefixing for you. You can use the following statements for example:

# Send chat message to all players.

# Send chat message to specific player or multiple players.
await'Test', 'player_login')  # Sends to single player.
await'Test', 'player_login', player_instance)  # Sends to both players.

# Execute in chain (Multicall).
  'global_message','Test', 'player_login'),'Test2', 'player_login2'),

# You can combine this with other calls in a GBX multicall:
await self.instance.gbx.multicall(
  self.instance.gbx.prepare('SetServerName', 'Test'),'Test2', 'player_login2'),