[Mod] Playtime Recorder [playtime]

User avatar
Lejo
Member
 
Posts: 460
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

[Mod] Playtime Recorder [playtime]

by Lejo » Mon Nov 13, 2017 16:43

This is a simple mod which records the time a player had played.
Use it with:
  • playtime.get_current_playtime(name)
  • playtime.get_total_playtime(name)

Depends: none
License: CC0
Download as zip
Source
Last edited by Lejo on Sun Jun 24, 2018 18:08, edited 1 time in total.
 

User avatar
cx384
Member
 
Posts: 492
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384
 

User avatar
azekill_DIABLO
Member
 
Posts: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] Playtime Recorder [playtime]

by azekill_DIABLO » Thu Nov 16, 2017 18:10

Lejo wrote:This is a simple mod which records the time a player had played.

For the parents who want to spy their children!
 

User avatar
Lejo
Member
 
Posts: 460
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Playtime Recorder [playtime]

by Lejo » Thu Nov 16, 2017 19:47

azekill_DIABLO wrote:
Lejo wrote:This is a simple mod which records the time a player had played.

For the parents who want to spy their children!

This is one use. but it's serverside and only a function and table for other mods.
 

User avatar
sorcerykid
Member
 
Posts: 863
Joined: Fri Aug 26, 2016 15:36
Location: Illinois, USA
GitHub: sorcerykid
In-game: Nemo

Re: [Mod] Playtime Recorder [playtime]

by sorcerykid » Sun Nov 19, 2017 16:10

Logging the session times to a file every second could have very detrimental effects on a server with tens of thousands of registered players (in fact, I'm having flashbacks of the builtin-authentication handler).
 

User avatar
Lejo
Member
 
Posts: 460
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Playtime Recorder [playtime]

by Lejo » Sun Nov 19, 2017 16:30

It's just a file same with money mod.
But I also think about to only record every 5 or 10 seconds.
And the current uptime is not recordet from this mod it's:
Code: Select all
minetest.get_player_information(name).connection_uptime
 

User avatar
LMD
Member
 
Posts: 688
Joined: Sat Apr 08, 2017 08:16
Location: Somewhere over the Rainbow : Bonn, Germany
GitHub: appgurueu
In-game: LMD + PRO_LMD + Limo
 

User avatar
Linuxdirk
Member
 
Posts: 1673
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: [Mod] Playtime Recorder [playtime]

by Linuxdirk » Thu May 24, 2018 10:10

Lejo wrote:It's just a file same with money mod.
But I also think about to only record every 5 or 10 seconds.
And the current uptime is not recordet from this mod it's:
Code: Select all
minetest.get_player_information(name).connection_uptime

Don't modify built-in tables.
 

User avatar
Lejo
Member
 
Posts: 460
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo
 

User avatar
Lejo
Member
 
Posts: 460
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 2 guests