From 5bd09b46adc9caee768e3e45bf98c614e517db2e Mon Sep 17 00:00:00 2001 From: Anand S Date: Mon, 12 Nov 2018 20:47:17 +0530 Subject: [PATCH] Add /r to allow players to take a quick peek at their score --- mods/ctf_stats/gui.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mods/ctf_stats/gui.lua b/mods/ctf_stats/gui.lua index d4d5da5..aa33d26 100644 --- a/mods/ctf_stats/gui.lua +++ b/mods/ctf_stats/gui.lua @@ -253,6 +253,13 @@ local function send_as_chat_result(to, name) return true, result end +minetest.register_chatcommand("r", { + description = "Display your rankings as a chat result.", + func = function(name, param) + return send_as_chat_result(name, name) + end +}) + minetest.register_chatcommand("rankings", { params = "[]", description = "Display rankings of yourself or another player.",