rspawn/lua/debugging.lua
Tai Kedzierski 976853c6cb Added logging, isolated act_on_behalf, fixed auto kick proximity
Specifically, if a player's spawn is close to a spawn they are banned from,
and they are close to their spawn, we avoid kicking them in loop.
2019-01-30 10:36:26 +00:00

21 lines
411 B
Lua

function rspawn:d(stuff)
-- Quick debugging
minetest.debug(dump(stuff))
end
function rspawn:debug(message, data)
-- Debugging from setting
if not rspawn.debug_on then
return
end
local debug_data = ""
if data ~= nil then
debug_data = " :: "..dump(data)
end
local debug_string = "[rspawn] DEBUG : "..message..debug_data
minetest.debug(debug_string)
end