diff options
Diffstat (limited to 'chat_commands.lua')
-rw-r--r-- | chat_commands.lua | 15 |
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 +}) |