correct if/else in line 42

This commit is contained in:
chmodsayshello 2022-10-31 21:53:51 +00:00
parent c572c27326
commit e9703c409e

View file

@ -23,6 +23,7 @@ minetest.register_chatcommand("awards", {
if param == "enable" then if param == "enable" then
awards.enable(name) awards.enable(name)
minetest.chat_send_player(name, S("You have enabled your advancements.")) minetest.chat_send_player(name, S("You have enabled your advancements."))
return
end end
if awards.player(name).disabled then if awards.player(name).disabled then
@ -37,8 +38,8 @@ minetest.register_chatcommand("awards", {
elseif param == "disable" then elseif param == "disable" then
awards.disable(name) awards.disable(name)
minetest.chat_send_player(name, S("You have disabled your advancements.")) minetest.chat_send_player(name, S("You have disabled your advancements."))
else param == "c" then else
awards.show_to(name, name, nil, true) awards.show_to(name, name, nil, false)
end end
end end
}) })