aboutsummaryrefslogtreecommitdiff
path: root/advtrains/log.lua
blob: 2913904e0fdd6daa0f808eb37955dd0fb2aedb05 (plain)
1
2
3
4
5
6
7
8
9
-- Log accesses to driver stands and changes to switches

advtrains.log = function() end

if minetest.settings:get_bool("advtrains_enable_logging") then
	function advtrains.log (event, player, pos, data)
		minetest.log("action", "advtrains: " ..event.." by "..player.." at "..minetest.pos_to_string(pos).." -- "..(data or ""))
	end
end