Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
minetest.register_chatcommand("cc", {
params = "<colour> <message>",
description = "Send coloured chat",
func = function(name, param)
local colour, message = string.match(param, "([^ ]+) (.+)")
minetest.chat_send_all("<" .. name .. "> " .. minetest.colorize(colour, message))
end
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.