Ignore:
Timestamp:
Jul 23, 2024, 6:49:56 PM (4 months ago)
Author:
alloc
Message:

*Fixed: Chat code
*Fixed: SSE connection counting, added connection set up logging

Location:
TFP-WebServer/CommandExtensions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TFP-WebServer/CommandExtensions/ModInfo.xml

    r487 r499  
    55        <Description value="Additional commands for server operation" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="1.1.0.0" />
     7        <Version value="1.1.0.1" />
    88        <Website value="" />
    99</xml>
  • TFP-WebServer/CommandExtensions/src/ChatHelpers.cs

    r485 r499  
    1010                        }
    1111
    12                         _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, _message,
    13                                 $"{senderName} (PM)", null));
     12                        _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1,
     13                                $"{senderName} (PM): {_message}", null,
     14                                EMessageSender.None));
    1415                        string receiverName = _receiver.playerName;
    1516                        receiverName = receiverName != null ? $"\"{receiverName}\"" : "unknownName";
  • TFP-WebServer/CommandExtensions/src/Commands/Give.cs

    r487 r499  
    5151                        }
    5252
    53                         int quality = Constants.cItemMaxQuality;
     53                        ushort quality = Constants.cItemMaxQuality;
    5454
    5555                        if (_params.Count == 4) {
    56                                 if (!int.TryParse (_params [3], out quality) || quality <= 0) {
     56                                if (!ushort.TryParse (_params [3], out quality) || quality > Constants.cItemMaxQuality) {
    5757                                        SdtdConsole.Instance.Output ("Quality is not an integer or not greater than zero.");
    5858                                        return;
Note: See TracChangeset for help on using the changeset viewer.