Changeset 488 for binary-improvements/7dtd-server-fixes/src/API.cs
- Timestamp:
- Jun 21, 2024, 2:58:18 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/API.cs
r455 r488 47 47 48 48 private static void PlayerSpawned (ClientInfo _cInfo, RespawnType _respawnReason, Vector3i _spawnPos) { 49 if (_cInfo == null) { 50 return; 51 } 52 49 53 PersistentContainer.Instance.Players.GetOrCreate (_cInfo.InternalId, _cInfo.PlatformId, _cInfo.CrossplatformId).SetOnline (_cInfo); 50 54 PersistentContainer.Instance.Save (); … … 54 58 55 59 private static bool ChatMessage (ClientInfo _cInfo, EChatType _type, int _senderId, string _msg, string _mainName, 56 bool _localizeMain,List<int> _recipientEntityIds) {60 List<int> _recipientEntityIds) { 57 61 if (string.IsNullOrEmpty (_msg) || !_msg.EqualsCaseInsensitive ("/alloc")) { 58 62 return true; … … 61 65 if (_cInfo != null) { 62 66 Log.Out ($"Sent chat hook reply to {_cInfo.InternalId}"); 63 _cInfo.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, ANSWER, "", false,null));67 _cInfo.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, ANSWER, "", null)); 64 68 } else { 65 69 Log.Error ($"ChatHookExample: Argument _cInfo null on message: {_msg}");
Note:
See TracChangeset
for help on using the changeset viewer.