From 87c04be9ea8cfd02c73ed9050e246884e5e026a7 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 10 Jun 2015 18:39:22 +0100 Subject: awards.register_trigger --- chat_commands.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'chat_commands.lua') 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 +}) -- cgit v1.2.3