summaryrefslogtreecommitdiff
path: root/chat_commands.lua
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2015-06-10 18:39:22 +0100
committerrubenwardy <rubenwardy@gmail.com>2016-07-29 16:00:58 +0100
commit87c04be9ea8cfd02c73ed9050e246884e5e026a7 (patch)
treecab789fe3cfb84a070e8b083080bff1139b2b796 /chat_commands.lua
parent85efc6704932898bf6c98ff5c043a989ce83f293 (diff)
awards.register_trigger
Diffstat (limited to 'chat_commands.lua')
-rw-r--r--chat_commands.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/chat_commands.lua b/chat_commands.lua
index e5c6959..4c8992a 100644
--- a/chat_commands.lua
+++ b/chat_commands.lua
@@ -35,3 +35,18 @@ minetest.register_chatcommand("awd", {
end
end
})
+
+minetest.register_chatcommand("awpl", {
+ privs = {
+ server = true
+ },
+ description = "awpl: Get the statistics for the player given",
+ func = function(name, param)
+ if not param or param == "" then
+ param = name
+ end
+ minetest.chat_send_player(name, param)
+ local player = awards.player(param)
+ minetest.chat_send_player(name, dump(player))
+ end
+})