Start of chat mod
parent
d7cc6e65aa
commit
dd9e2cacf5
|
@ -0,0 +1,19 @@
|
||||||
|
chat = {}
|
||||||
|
|
||||||
|
--[[
|
||||||
|
minetest.register_on_chat_message(function(name,msg)
|
||||||
|
|
||||||
|
end)
|
||||||
|
]]
|
||||||
|
|
||||||
|
chat.local_chat = function(pos,text,radius)
|
||||||
|
if radius == nil then
|
||||||
|
radius = 25
|
||||||
|
end
|
||||||
|
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
|
Loading…
Reference in New Issue