- Timestamp:
- Aug 7, 2022, 3:02:24 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/7dtd-server-fixes/src/PersistentData/Players.cs
r383 r391 41 41 42 42 if (int.TryParse (_nameOrId, out int entityId)) { 43 foreach ( KeyValuePair<PlatformUserIdentifierAbs, Player> kvpin Dict) {44 if ( kvp.Value.IsOnline && kvp.Value.EntityID == entityId) {45 return kvp.Key;43 foreach ((PlatformUserIdentifierAbs iUserId, Player player) in Dict) { 44 if (player.IsOnline && player.EntityID == entityId) { 45 return iUserId; 46 46 } 47 47 } 48 48 } 49 49 50 foreach ( KeyValuePair<PlatformUserIdentifierAbs, Player> kvpin Dict) {51 string name = kvp.Value.Name;50 foreach ((PlatformUserIdentifierAbs iUserId, Player player) in Dict) { 51 string name = player.Name; 52 52 if (_ignoreColorCodes) { 53 53 name = Regex.Replace (name, "\\[[0-9a-fA-F]{6}\\]", ""); 54 54 } 55 55 56 if ( kvp.Value.IsOnline && name.EqualsCaseInsensitive (_nameOrId)) {57 return kvp.Key;56 if (player.IsOnline && name.EqualsCaseInsensitive (_nameOrId)) { 57 return iUserId; 58 58 } 59 59 }
Note:
See TracChangeset
for help on using the changeset viewer.