Changeset 488 for binary-improvements/7dtd-server-fixes
- Timestamp:
- Jun 21, 2024, 2:58:18 PM (5 months ago)
- Location:
- binary-improvements/7dtd-server-fixes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/ModInfo.xml
r464 r488 5 5 <Description value="Common functions" /> 6 6 <Author value="Christian 'Alloc' Illy" /> 7 <Version value="3 1" />7 <Version value="32" /> 8 8 <Website value="https://7dtd.illy.bz" /> 9 9 </xml> -
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}"); -
binary-improvements/7dtd-server-fixes/src/LandClaimList.cs
r448 r488 41 41 42 42 foreach (KeyValuePair<PersistentPlayerData, List<Vector3i>> kvp in owners) { 43 Player p = PersistentContainer.Instance.Players.GetByInternalId (kvp.Key. UserIdentifier);43 Player p = PersistentContainer.Instance.Players.GetByInternalId (kvp.Key.PrimaryId); 44 44 if (p == null) { 45 PlatformUserIdentifierAbs platformId = kvp.Key. PlatformUserIdentifier;46 PlatformUserIdentifierAbs internalId = kvp.Key. UserIdentifier;45 PlatformUserIdentifierAbs platformId = kvp.Key.NativeId; 46 PlatformUserIdentifierAbs internalId = kvp.Key.PrimaryId; 47 47 PlatformUserIdentifierAbs crossPlatformId = platformId == null || platformId.Equals (internalId) ? null : internalId; 48 48 p = new Player (internalId, platformId, crossPlatformId);
Note:
See TracChangeset
for help on using the changeset viewer.