Created
June 1, 2016 18:15
-
-
Save Amaz1/b3b5c64d59fac5a59e50a87617cd6522 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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