- Timestamp:
- Aug 30, 2014, 6:32:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/Players.cs
r144 r145 47 47 } 48 48 } 49 } 49 50 50 _nameOrId = _nameOrId.ToLower (); 51 foreach (KeyValuePair<string, Player> kvp in players) { 52 string name = kvp.Value.Name.ToLower (); 53 if (_ignoreColorCodes) { 54 name = Regex.Replace (name, "\\[[0-9a-fA-F]{6}\\]", ""); 55 } 56 if (kvp.Value.IsOnline && kvp.Value.Name.Equals (name)) { 57 return kvp.Key; 58 } 51 _nameOrId = _nameOrId.ToLower (); 52 foreach (KeyValuePair<string, Player> kvp in players) { 53 string name = kvp.Value.Name.ToLower (); 54 if (_ignoreColorCodes) { 55 name = Regex.Replace (name, "\\[[0-9a-fA-F]{6}\\]", ""); 56 } 57 if (kvp.Value.IsOnline && name.Equals (_nameOrId)) { 58 return kvp.Key; 59 59 } 60 60 }
Note:
See TracChangeset
for help on using the changeset viewer.