forked from minetest-mods/xban2
Store last time player logged in into DB.
This commit is contained in:
parent
7923c393e9
commit
8fa41861dd
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)
|
local e = xban.find_entry(name) or xban.find_entry(ip, true)
|
||||||
e.names[name] = true
|
e.names[name] = true
|
||||||
e.names[ip] = true
|
e.names[ip] = true
|
||||||
|
e.last_seen = os.time()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_chatcommand("xban", {
|
minetest.register_chatcommand("xban", {
|
||||||
|
Loading…
Reference in New Issue
Block a user