- Timestamp:
- Jan 27, 2023, 7:28:00 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/CommandExtensions/src/Commands/ListLandProtection.cs
r391 r402 60 60 userIdFilter = ci.InternalId; 61 61 } else { 62 SdtdConsole.Instance.Output ( "Player name or entity id \"" + _params [0] + "\" not found.");62 SdtdConsole.Instance.Output ($"Player name or entity id \"{_params [0]}\" not found."); 63 63 return; 64 64 } … … 82 82 } catch (Exception e) { 83 83 SdtdConsole.Instance.Output ("Error getting current player's position"); 84 Log.Out ( "Error in ListLandProtection.Run: " + e);84 Log.Out ($"Error in ListLandProtection.Run: {e}"); 85 85 return; 86 86 } … … 114 114 foreach (Vector3i v in claimPositions) { 115 115 if (parseableOutput) { 116 SdtdConsole.Instance.Output ( "LandProtectionOf: id=" + claimOwner.PlatformId +117 ", playerName=" + claimOwner.Name + ", location=" + v);116 SdtdConsole.Instance.Output ( 117 $"LandProtectionOf: id={claimOwner.PlatformId}, playerName={claimOwner.Name}, location={v}"); 118 118 } else { 119 SdtdConsole.Instance.Output ( " (" + v + ")");119 SdtdConsole.Instance.Output ($" ({v})"); 120 120 } 121 121 } … … 123 123 124 124 if (userIdFilter == null) { 125 SdtdConsole.Instance.Output ( "Total of " + ppl.m_lpBlockMap.Count + "keystones in the game");125 SdtdConsole.Instance.Output ($"Total of {ppl.m_lpBlockMap.Count} keystones in the game"); 126 126 } 127 127 }
Note:
See TracChangeset
for help on using the changeset viewer.