This is a fairly simple mod. It adds a /you chat command which sends a chat about another player. For example, if I were to type '/you dummy is nanepiwo's friend', the in-game chat will display '** dummy is nanepiwo's friend [nanepiwo]'. It also comes with an option, defaulting to off, which sends a chat message to player talked about in the /you command.
Code: Select all
--- WIP!!!!!!
minetest.register_chatcommand("you", {
params = "<player> <action>",
description = "Say something about another player in the format of /me",
privs = {shout = true},
func = function(name, param)
local player, action
= param:match('(^.- ) ( .-$)')
minetest.chat_send_all("** "..player.. " " ..action.. "[" ..name.. "]")
Umm, I still need to add this to github, add licenses, etc.! ;)