A CobaltEssentials extension to provide tracking of cumulative player connection time across sessions on BeamMP Servers
.../Resources/Server/CobaltEssentials/extensions/
.../Resources/Server/CobaltEssentials/LoadExtensions.cfg
# Add your new extensions here as a key/value pair
# The first one is the name in the lua enviroment
# The second value is the file path to the main lua from CobaltEssentials/extensions
exampleExtension = "exampleExtension"
timeTracker = "timeTracker"
N/A
This extension will keep track of the total time in seconds a player is connected to a server and store it in .../CobaltDB/playersDB/<playername>.json
It will look like this example :
{
"stats":{
"totalTime":2075.858
}
}
This extension's only command currently is /totaltime <playername>
This will show you the total time stored for that player.
A player's totalTime is updated on vehicle resets and when the player leaves the server.