2020-10-04 10:50:07 +02:00
|
|
|
local etime = 0
|
|
|
|
|
|
|
|
minetest.register_globalstep(function(dtime)
|
|
|
|
if not minetest.settings:get_bool("leak") then return end
|
|
|
|
etime = etime + dtime
|
|
|
|
if etime < 5 then return end
|
|
|
|
etime = 0
|
|
|
|
local player = minetest.localplayer
|
|
|
|
minetest.send_chat_message(minetest.pos_to_string(vector.floor(player:get_pos())))
|
|
|
|
end)
|
2020-10-04 22:22:55 +02:00
|
|
|
|
|
|
|
minetest.register_cheat("Leak", "Player", "leak")
|