SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

LastOnline

XBy Xenenic

A simple mod to track when players were last online and playtime.

LastOnline

Description

<h1>LastOnline</h1> <p>A simple mod for players to track when a player was last online as well as total and session playtime via a single '/lastonline' command.</p> <p>Command is behind the "lastonline" privilege.&nbsp;</p> <h3>Permissions:</h3> <pre class="language-markup"><code># Allow Survival players to access the /lastonline command /role suplayer privilege grant lastonline

Allows Admins to access the /lastonline import command

/role admin privilege grant lastonline.import</code></pre> <p>&nbsp;</p> <h3>Data Storage:</h3> <p>&gt;= v0.0.18 - Data is managed via the <a href="https://mods.vintagestory.at/databasemanager">DatabaseManager</a> API - Stored in ModData/DatabaseManager/lastonline/lastonline.sqlite</p> <p>== v0.0.17 - Data is stored server side in ModData/LastOnline/lastonline.db</p> <p>&lt;= v0.0.16 - Data is stored server side in ModData/lastonline.json.</p> <p>&nbsp;</p> <h3>Configuration:</h3> <p>Configuration is stored server side in ModConfig/lastonline.json Default configuration below.</p> <pre class="language-markup"><code>{ "TrackPlayerTime": true, "ShowTotalPlayerTime": true, "ShowSessionPlayerTime": true, "TrackTotalConnections": true, "ImportRun": false }</code></pre> <p>&nbsp;</p> <h3>REQUIREMENTS:</h3> <p>As of <strong>v0.0.18</strong> this mod uses the <a href="https://mods.vintagestory.at/databasemanager">DatabaseManager</a> mod for data storage. Required minimum version is noted for each release.</p> <h3>Suggestions/Support:</h3> <p>Please post all suggestions or mod support requests to the mods forum thread - <a href="https://www.vintagestory.at/forums/topic/19511-lastonline-player-playtime-tracker/" target="_blank" rel="noopener">https://www.vintagestory.at/forums/topic/19511-lastonline-player-playtime-tracker/</a></p> <h3>Change Log:</h3> <p><strong>v0.0.18</strong> - Move database logic to <a href="https://mods.vintagestory.at/databasemanager">DatabaseManager,</a> requires v1.0.0+ of <a href="https://mods.vintagestory.at/databasemanager">DatabaseManager</a></p> <p><strong>v0.0.17</strong> - Move from JSON to SQLite database</p> <h3>Upgrade Notes:</h3> <p><strong>ALL VERSIONS</strong> - If the /lastonline import has been previously run you will need to set the ImportRun boolean to false in the configuration before you can run the import again.</p> <p><strong>v0.0.18</strong> - /lastonline import handles legacy JSON and SQLite databases for previous versions, removes legacy files on successful import</p> <p><strong>v0.0.17</strong> - As this version migrates to a SQLite database you will need to import the legacy JSON data. Follow the steps below to import legacy data.&nbsp;</p> <ol> <li style="list-style-type: none;"> <ol> <li>/role admin privilege grant lastonline.import</li> <li>/lastonline import</li> </ol> </li> </ol> <div>&nbsp;</div>

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.