diff options
author | Diego Martinez <kaeza@users.sf.net> | 2014-07-09 06:46:58 -0300 |
---|---|---|
committer | Diego Martinez <kaeza@users.sf.net> | 2014-07-09 06:46:58 -0300 |
commit | 8fa41861dd68b53faa92b98de39fc295440ff1c5 (patch) | |
tree | add2074be6535f1be97a4327eedc685254a04142 | |
parent | 7923c393e9d2db75fa630a65f5e03491473299ef (diff) | |
download | xban2-8fa41861dd68b53faa92b98de39fc295440ff1c5.tar.gz xban2-8fa41861dd68b53faa92b98de39fc295440ff1c5.tar.bz2 xban2-8fa41861dd68b53faa92b98de39fc295440ff1c5.zip |
Store last time player logged in into DB.
-rw-r--r-- | init.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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", { |