

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

Description
LastOnline
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.
Command is behind the "lastonline" privilege.
Permissions:
<pre class="language-markup"># 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
</pre>
Data Storage:
>= v0.0.18 - Data is managed via the DatabaseManager API - Stored in ModData/DatabaseManager/lastonline/lastonline.sqlite
== v0.0.17 - Data is stored server side in ModData/LastOnline/lastonline.db
<= v0.0.16 - Data is stored server side in ModData/lastonline.json.
Configuration:
Configuration is stored server side in ModConfig/lastonline.json Default configuration below.
{ "TrackPlayerTime": true, "ShowTotalPlayerTime": true, "ShowSessionPlayerTime": true, "TrackTotalConnections": true, "ImportRun": false }</pre>
REQUIREMENTS:
As of v0.0.18 this mod uses the DatabaseManager mod for data storage. Required minimum version is noted for each release.
Suggestions/Support:
Please post all suggestions or mod support requests to the mods forum thread - https://www.vintagestory.at/forums/topic/19511-lastonline-player-playtime-tracker/
Change Log:
v0.0.18 - Move database logic to DatabaseManager, requires v1.0.0+ of DatabaseManager
v0.0.17 - Move from JSON to SQLite database
Upgrade Notes:
ALL VERSIONS - 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.
v0.0.18 - /lastonline import handles legacy JSON and SQLite databases for previous versions, removes legacy files on successful import
v0.0.17 - 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.
-
/role admin privilege grant lastonline.import/lastonline import
Ratings & reviews
Sign in to leave a rating or comment.

