Show messaged on_chat_message

Useful if trying to contact an AFK player. If a chat message is detected from a player with a backlog of messages, they are shown.
This commit is contained in:
octacian 2017-04-04 08:06:01 -07:00
parent a185d602a9
commit bbbef1ab85

@ -88,3 +88,8 @@ minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
tell.show(name)
end)
-- [register] On chat message
minetest.register_on_chat_message(function(name)
tell.show(name)
end)