mirror of
https://github.com/minetest-mods/xban2.git
synced 2025-03-15 04:11:25 +00:00
Store last time player logged in into DB.
This commit is contained in:
parent
7923c393e9
commit
8fa41861dd
1 changed files with 1 additions and 0 deletions
1
init.lua
1
init.lua
|
@ -174,6 +174,7 @@ minetest.register_on_joinplayer(function(player)
|
|||
local e = xban.find_entry(name) or xban.find_entry(ip, true)
|
||||
e.names[name] = true
|
||||
e.names[ip] = true
|
||||
e.last_seen = os.time()
|
||||
end)
|
||||
|
||||
minetest.register_chatcommand("xban", {
|
||||
|
|
Loading…
Add table
Reference in a new issue