Rename reveal priv

This commit is contained in:
Wuzzy 2016-10-13 05:21:45 +02:00
parent 0237c1b64e
commit ec9127adb1

View File

@ -880,14 +880,14 @@ if minetest.get_modpath("unified_inventory") ~= nil then
end end
minetest.register_privilege("doc_reveal", { minetest.register_privilege("doc_reveal", {
description = "Allows you to reveal all hidden help entries with /doc_unlock", description = "Allows you to reveal all hidden help entries with /doc_reveal",
give_to_singleplayer = false give_to_singleplayer = false
}) })
minetest.register_chatcommand("doc_reveal", { minetest.register_chatcommand("doc_reveal", {
params = "", params = "",
description = "Reveals all hidden help entries to you", description = "Reveals all hidden help entries to you",
privs = { doc_unlock = true }, privs = { doc_reveal = true },
func = function(name, param) func = function(name, param)
doc.mark_all_entries_as_revealed(name) doc.mark_all_entries_as_revealed(name)
end, end,