Skip to content

Instantly share code, notes, and snippets.

@Amaz1
Created June 1, 2016 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Amaz1/b3b5c64d59fac5a59e50a87617cd6522 to your computer and use it in GitHub Desktop.
Save Amaz1/b3b5c64d59fac5a59e50a87617cd6522 to your computer and use it in GitHub Desktop.
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