Bug: Chat messages intended for players are visible to the host in offline games
Chat messages intended for players are visible to the host in offline games
| Status: | Duplicate |
| Added by: |
|
| Reported for: |
SFD 1.6.0.3
Auto
|
| Fixed In Release: |
Not set
|
Steps to Reproduce
No steps to reproduce
Explanation
Messages directed at other users are visible to the host in offline games
Chat messages sent to other users (bots) through the Script API are public and can be seen by the host.
This creates problems for scripts intended to display player-specific information, as the chat can become flooded with information intended for every individual player.
If this behavior is intended as some form of debugging functionality, it may be better suited for the console instead.
Sample script:
public static void AfterStartup()
{
foreach (IPlayer player in Game.GetPlayers())
{
Game.ShowChatMessage($"Hello {player.Name} @ {player.UserIdentifier}!", player.UserIdentifier);
}
}
Watchers
Screenshots
None
Video Clips
None
Log Files
None
Device
No device information
You don't have permission to comment on this issue.