Ignore:
Timestamp:
Jan 27, 2025, 4:29:28 PM (3 days ago)
Author:
alloc
Message:

Compatibility fixes for 2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TFP-WebServer/CommandExtensions/src/ChatHelpers.cs

    r499 r503  
    66                                PrivateMessageConnections.SetLastPMSender (_sender, _receiver);
    77                                senderName = _sender.playerName;
     8                               
     9                                _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, _sender.entityId,
     10                                        _message, null, EMessageSender.SenderIdAsPlayer, GeneratedTextManager.BbCodeSupportMode.SupportedAndAddEscapes));
    811                        } else {
    912                                senderName = "Server";
     13                               
     14                                _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1,
     15                                        _message, null, EMessageSender.Server, GeneratedTextManager.BbCodeSupportMode.Supported));
    1016                        }
    1117
    12                         _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1,
    13                                 $"{senderName} (PM): {_message}", null,
    14                                 EMessageSender.None));
    1518                        string receiverName = _receiver.playerName;
    1619                        receiverName = receiverName != null ? $"\"{receiverName}\"" : "unknownName";
Note: See TracChangeset for help on using the changeset viewer.