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:
parent
a185d602a9
commit
bbbef1ab85
5
init.lua
5
init.lua
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user