summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2013-03-27 21:20:26 -0400
committerAnthony Zhang <azhang9@gmail.com>2013-03-27 21:21:44 -0400
commit2cc38909a12ad2ea9a62eac35eb66bcecd721b9f (patch)
tree5faaba63f289cc6ed51694db6b66956c2e3f50bf
parent36bcce57b0ea4e973ebf4a6a83e64c1fe038b063 (diff)
downloadmesecons-2cc38909a12ad2ea9a62eac35eb66bcecd721b9f.tar
mesecons-2cc38909a12ad2ea9a62eac35eb66bcecd721b9f.tar.gz
mesecons-2cc38909a12ad2ea9a62eac35eb66bcecd721b9f.tar.bz2
mesecons-2cc38909a12ad2ea9a62eac35eb66bcecd721b9f.tar.xz
mesecons-2cc38909a12ad2ea9a62eac35eb66bcecd721b9f.zip
Add /tellme command to command block.
-rw-r--r--mesecons_commandblock/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/mesecons_commandblock/init.lua b/mesecons_commandblock/init.lua
index 0cc91c9..9e868bc 100644
--- a/mesecons_commandblock/init.lua
+++ b/mesecons_commandblock/init.lua
@@ -20,6 +20,14 @@ minetest.register_chatcommand("tell", {
end
})
+minetest.register_chatcommand("tellme", {
+ params = "<text>",
+ description = "Say <text> to yourself",
+ func = function(name, param)
+ minetest.chat_send_player(name, param)
+ end
+})
+
minetest.register_chatcommand("hp", {
params = "<name> <value>",
description = "Set health of <name> to <value> hitpoints",