Add /r to allow players to take a quick peek at their score

This commit is contained in:
Anand S 2018-11-12 20:47:17 +05:30 committed by rubenwardy
parent d0ff9e332a
commit 5bd09b46ad

View file

@ -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 = "[<name>]",
description = "Display rankings of yourself or another player.",