Changeset 371
- Timestamp:
- Jul 27, 2022, 7:16:34 PM (2 years ago)
- Location:
- binary-improvements
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/API.cs
r369 r371 23 23 24 24 public void SavePlayerData (ClientInfo _cInfo, PlayerDataFile _playerDataFile) { 25 PersistentContainer.Instance.Players [_cInfo. PlatformId, true].Update (_playerDataFile);25 PersistentContainer.Instance.Players [_cInfo.InternalId, true].Update (_playerDataFile); 26 26 } 27 27 … … 43 43 44 44 public void PlayerDisconnected (ClientInfo _cInfo, bool _bShutdown) { 45 Player p = PersistentContainer.Instance.Players [_cInfo. PlatformId, false];45 Player p = PersistentContainer.Instance.Players [_cInfo.InternalId, false]; 46 46 if (p != null) { 47 47 p.SetOffline (); … … 54 54 55 55 public void PlayerSpawned (ClientInfo _cInfo, RespawnType _respawnReason, Vector3i _spawnPos) { 56 PersistentContainer.Instance.Players [_cInfo. PlatformId, true].SetOnline (_cInfo);56 PersistentContainer.Instance.Players [_cInfo.InternalId, true].SetOnline (_cInfo); 57 57 PersistentContainer.Instance.Save (); 58 58 } -
binary-improvements/AllocsCommands/Commands/ListLandProtection.cs
r369 r371 55 55 ClientInfo ci = ConsoleHelper.ParseParamIdOrName (_params [0]); 56 56 if (ci != null) { 57 userIdFilter = ci. PlatformId;57 userIdFilter = ci.InternalId; 58 58 } else { 59 59 SdtdConsole.Instance.Output ("Player name or entity id \"" + _params [0] + "\" not found."); -
binary-improvements/MapRendering/Web/API/GetPlayersOnline.cs
r369 r371 13 13 foreach (KeyValuePair<int, EntityPlayer> current in w.Players.dict) { 14 14 ClientInfo ci = ConnectionManager.Instance.Clients.ForEntityId (current.Key); 15 Player player = PersistentContainer.Instance.Players [ci. PlatformId, false];15 Player player = PersistentContainer.Instance.Players [ci.InternalId, false]; 16 16 17 17 JSONObject pos = new JSONObject ();
Note:
See TracChangeset
for help on using the changeset viewer.