Skip to content

Commit 5bd09b4

Browse files
ClobberXDrubenwardy
authored andcommitted
Add /r to allow players to take a quick peek at their score
1 parent d0ff9e3 commit 5bd09b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mods/ctf_stats/gui.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,13 @@ local function send_as_chat_result(to, name)
253253
return true, result
254254
end
255255

256+
minetest.register_chatcommand("r", {
257+
description = "Display your rankings as a chat result.",
258+
func = function(name, param)
259+
return send_as_chat_result(name, name)
260+
end
261+
})
262+
256263
minetest.register_chatcommand("rankings", {
257264
params = "[<name>]",
258265
description = "Display rankings of yourself or another player.",

0 commit comments

Comments
 (0)