2014-05-25 23:14:14 -05:00
|
|
|
chat = {}
|
|
|
|
|
|
|
|
--[[
|
|
|
|
minetest.register_on_chat_message(function(name,msg)
|
|
|
|
|
|
|
|
end)
|
|
|
|
]]
|
|
|
|
|
|
|
|
chat.local_chat = function(pos,text,radius)
|
2014-07-07 21:56:56 -05:00
|
|
|
if radius == nil then
|
|
|
|
radius = 25
|
|
|
|
end
|
|
|
|
if pos ~= nil then
|
|
|
|
local oir = minetest.get_objects_inside_radius(pos, radius)
|
|
|
|
for _,p in pairs(oir) do
|
|
|
|
if p:is_player() then
|
|
|
|
minetest.chat_send_player(p:get_player_name(),text)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2014-05-25 23:14:14 -05:00
|
|
|
end
|