Changes

Jump to navigation Jump to search
→‎Get connected player info: update example versions
Line 47: Line 47:  
| <tt>GameVersion</tt>
 
| <tt>GameVersion</tt>
 
| <tt>ISemanticVersion</tt>
 
| <tt>ISemanticVersion</tt>
| (Requires SMAPI.) The version of the game they have installed (like <tt>1.3.31</tt>).
+
| (Requires SMAPI.) The version of the game they have installed (like {{#tag:tt|{{version|link=0}}}}).
 
|-
 
|-
 
| <tt>ApiVersion</tt>
 
| <tt>ApiVersion</tt>
 
| <tt>ISemanticVersion</tt>
 
| <tt>ISemanticVersion</tt>
| (Requires SMAPI.) The version of SMAPI they have installed (like <tt>2.8</tt>).
+
| (Requires SMAPI.) The version of SMAPI they have installed (like <tt>2.11</tt>).
 
|-
 
|-
 
| <tt>Mods</tt>
 
| <tt>Mods</tt>
Line 68: Line 68:  
     if (peer.HasSmapi)
 
     if (peer.HasSmapi)
 
     {
 
     {
         // prints something like: "Found player -1634555469947451666 running Stardew Valley 1.3.31 and SMAPI 2.8-beta.5 on Windows with 41 mods."
+
         // prints something like: "Found player -1634555469947451666 running Stardew Valley 1.3.36 and SMAPI 2.11 on Windows with 41 mods."
 
         this.Monitor.Log($"Found player {peer.PlayerID} running Stardew Valley {peer.GameVersion} and SMAPI {peer.ApiVersion} on {peer.Platform} with {peer.Mods.Count()} mods.");
 
         this.Monitor.Log($"Found player {peer.PlayerID} running Stardew Valley {peer.GameVersion} and SMAPI {peer.ApiVersion} on {peer.Platform} with {peer.Mods.Count()} mods.");
 
     }
 
     }
translators
8,403

edits

Navigation menu