Changeset 446 for binary-improvements/AllocsCommands/Commands
- Timestamp:
- Jun 12, 2023, 3:21:34 PM (19 months ago)
- Location:
- binary-improvements/AllocsCommands/Commands
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/AllocsCommands/Commands/ListKnownPlayers.cs
r420 r446 45 45 46 46 if (userIdFilter != null) { 47 Player p = PersistentContainer.Instance.Players [userIdFilter, false];47 Player p = PersistentContainer.Instance.Players.GetByInternalId (userIdFilter); 48 48 49 49 if (p != null) { -
binary-improvements/AllocsCommands/Commands/ListLandProtection.cs
r420 r446 105 105 "Player \"{0} ({1})\" owns {4} keystones (protected: {2}, current hardness multiplier: {3})", 106 106 kvp.Key.Name, 107 kvp.Key. PlatformId,107 kvp.Key.InternalId, 108 108 kvp.Key.LandProtectionActive, 109 109 kvp.Key.LandProtectionMultiplier, … … 112 112 foreach (Vector3i v in kvp.Value) { 113 113 if (parseableOutput) { 114 SdtdConsole.Instance.Output ("LandProtectionOf: id=" + kvp.Key. PlatformId +114 SdtdConsole.Instance.Output ("LandProtectionOf: id=" + kvp.Key.InternalId + 115 115 ", playerName=" + kvp.Key.Name + ", location=" + v); 116 116 } else { -
binary-improvements/AllocsCommands/Commands/ShowInventory.cs
r420 r446 1 using System;2 1 using System.Collections.Generic; 3 2 using AllocsFixes.PersistentData; … … 30 29 } 31 30 32 Pla tformUserIdentifierAbs steamid = PersistentContainer.Instance.Players.GetSteamID(_params [0], true);33 if ( steamid== null) {31 Player p = PersistentContainer.Instance.Players.GetByString (_params [0], true); 32 if (p == null) { 34 33 SdtdConsole.Instance.Output ( 35 34 "Playername or entity/steamid id not found or no inventory saved (first saved after a player has been online for 30s)."); … … 42 41 } 43 42 44 Player p = PersistentContainer.Instance.Players [steamid, false];45 43 PersistentData.Inventory inv = p.Inventory; 46 44 … … 164 162 } 165 163 166 DoParts (_parts [i].parts, _indent + 1, _currentMessage);164 DoParts (_parts [i].parts, _indent + 1, null); 167 165 } else { 168 166 // currentMessage given -> parseable output
Note:
See TracChangeset
for help on using the changeset viewer.