forked from nalc/awards
Fix /list_awards
This commit is contained in:
parent
9f61f2e600
commit
ee438e31f8
5
api.lua
5
api.lua
|
@ -185,8 +185,9 @@ minetest.register_chatcommand("list_awards", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "list_awards: list your awards",
|
description = "list_awards: list your awards",
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
if not awards.players[name] then
|
if not awards.players[name] or not awards.players[name].unlocked then
|
||||||
minetest.chat_send_player(name, "Unable to find your award listings!")
|
minetest.chat_send_player(name, "You do not have any awards")
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.chat_send_player(name, name.."'s awards:")
|
minetest.chat_send_player(name, name.."'s awards:")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user