diff options
author | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-11-29 11:51:44 +0100 |
---|---|---|
committer | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-11-29 11:51:44 +0100 |
commit | b78980a5b7424a24bc7b0be26556aa191ebd680a (patch) | |
tree | 43ae8df577c6a02141d04d67d530b50c2b28f8f7 | |
parent | f76be4563596862f97709da97a6f5e6feb9b4203 (diff) |
some logging to keep track on which players started/ended a game from the server logHEADorigin/masterorigin/HEADmaster
-rwxr-xr-x | mario/gamestate.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mario/gamestate.lua b/mario/gamestate.lua index df1816b..2fa1f36 100755 --- a/mario/gamestate.lua +++ b/mario/gamestate.lua @@ -90,6 +90,7 @@ function mario.game_end(id) if ranking then minetest.chat_send_player(gamestate.player_name, "You made it to the highscores! Your Ranking: " .. ranking) end + minetest.log("action", gamestate.player_name .. " ended mario game with ".. (gamestate.score or "no") .." score at " .. minetest.pos_to_string(gamestate.pos)) end -- Restore normal physics player:set_physics_override(1,1,1,true,false) @@ -102,7 +103,7 @@ end function mario.game_reset(id, player) local gamestate = mario.games[id] if not gamestate then return end - minetest.log("action", "resetting game " .. id) + minetest.log("action", "resetting game " .. id .. " by " .. gamestate.player_name) -- Save the time when the game was last resetted (to solve timing issues) local last_reset = os.time() |