Lejo
Member
Posts: 718 Joined: Mon Oct 19, 2015 16:32
GitHub:
Lejo1
In-game: Lejo
by Lejo » Mon Nov 13, 2017 16:43
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.
cx384
Member
Posts: 654 Joined: Wed Apr 23, 2014 09:38
GitHub:
cx384
IRC: cx384
by cx384 » Tue Nov 14, 2017 17:06
Post
Good to have!
Can your read this?
azekill_DIABLO
Member
Posts: 7507 Joined: Wed Oct 29, 2014 20:05
GitHub:
azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:
by azekill_DIABLO » Thu Nov 16, 2017 18:10
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!
Lejo
Member
Posts: 718 Joined: Mon Oct 19, 2015 16:32
GitHub:
Lejo1
In-game: Lejo
by Lejo » Thu Nov 16, 2017 19:47
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.
sorcerykid
Member
Posts: 1847 Joined: Fri Aug 26, 2016 15:36
GitHub:
sorcerykid
In-game: Nemo
Location: Illinois, USA
by sorcerykid » Sun Nov 19, 2017 16:10
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).
Lejo
Member
Posts: 718 Joined: Mon Oct 19, 2015 16:32
GitHub:
Lejo1
In-game: Lejo
by Lejo » Sun Nov 19, 2017 16:30
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
LMD
Member
Posts: 1397 Joined: Sat Apr 08, 2017 08:16
GitHub:
appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:
by LMD » Thu May 24, 2018 09:56
Post
So sick we havent got LuaSQLite !
Linuxdirk
Member
Posts: 3219 Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:
by Linuxdirk » Thu May 24, 2018 10:10
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.
Lejo
Member
Posts: 718 Joined: Mon Oct 19, 2015 16:32
GitHub:
Lejo1
In-game: Lejo
by Lejo » Thu May 24, 2018 11:16
Post
It's not modified its just the Source where I get the Time.
Lejo
Member
Posts: 718 Joined: Mon Oct 19, 2015 16:32
GitHub:
Lejo1
In-game: Lejo
by Lejo » Sun Jun 24, 2018 18:09
Post
Added the /playtime command
Users browsing this forum: No registered users and 30 guests