Add /r to allow players to take a quick peek at their score
This commit is contained in:
parent
d0ff9e332a
commit
5bd09b46ad
1 changed files with 7 additions and 0 deletions
|
@ -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.",
|
||||
|
|
Loading…
Reference in a new issue