[Mod] Playtime Recorder [playtime]

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

[Mod] Playtime Recorder [playtime]

by Lejo » Post

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: MIT
Download as zip
Source
Last edited by Lejo on Fri Jun 21, 2019 11:27, edited 2 times in total.

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

Re: [Mod] Playtime Recorder [playtime]

by cx384 » Post

Good to have!
Can your read this?

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

Re: [Mod] Playtime Recorder [playtime]

by azekill_DIABLO » Post

Lejo wrote:This is a simple mod which records the time a player had played.
For the parents who want to spy their children!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

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

Re: [Mod] Playtime Recorder [playtime]

by Lejo » Post

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: 1847
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

Re: [Mod] Playtime Recorder [playtime]

by sorcerykid » Post

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: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Playtime Recorder [playtime]

by Lejo » Post

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: 1397
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Playtime Recorder [playtime]

by LMD » Post

So sick we havent got LuaSQLite !
My stuff: Projects - Mods - Website

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

Re: [Mod] Playtime Recorder [playtime]

by Linuxdirk » Post

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: 718
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] Playtime Recorder [playtime]

by Lejo » Post

It's not modified its just the Source where I get the Time.

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

Re: [Mod] Playtime Recorder [playtime]

by Lejo » Post

Added the /playtime command

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests