diff options
author | Diego Martinez <kaeza@users.sf.net> | 2014-05-23 05:14:28 -0300 |
---|---|---|
committer | Diego Martinez <kaeza@users.sf.net> | 2014-05-23 05:14:28 -0300 |
commit | a79e7a641924e2eb225c6efaa840c1f84d3a9712 (patch) | |
tree | 76541ed47abf869da18842fef311330a48722d37 | |
parent | ccab1f35c743071442046dfb8e694bc08d2c0dfb (diff) |
Save last position of banned users.
Requested by shadowzone and VanessaE.
-rw-r--r-- | init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -86,6 +86,7 @@ function xban.ban_player(player, source, expires, reason) --> bool, err if ip then e.names[ip] = true end + e.last_pos = pl:getpos() end e.reason = reason e.time = rec.time @@ -232,6 +233,11 @@ minetest.register_chatcommand("xban_record", { minetest.chat_send_player(name, ("[%s]: %s"):format(os.date("%c", e.time), msg)) end + if e.last_pos then + minetest.chat_send_player(name, + ("[%s]: User was last seen at %s"):format( + minetest.pos_to_string(e.last_pos))) + end end, }) |