summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-06 14:57:33 +0100
committerWuzzy <almikes@aol.com>2016-12-06 14:57:33 +0100
commit68013d8cc6e3d97293a3b524d119b0025728b1a9 (patch)
tree91d42af541eed4ad0d7ad7397a489bff3fa03aea
parentbf94226a4b44593eefa640a3926671de94ccd9df (diff)
Change meaning of itemstring setting
-rw-r--r--init.lua4
-rw-r--r--settingtypes.txt9
2 files changed, 8 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index 7e80147..56f5590 100644
--- a/init.lua
+++ b/init.lua
@@ -23,7 +23,7 @@ local setting = minetest.setting_getbool("doc_items_friendly_group_names")
if setting ~= nil then
doc.sub.items.settings.friendly_group_names = setting
end
-doc.sub.items.settings.itemstring = true
+doc.sub.items.settings.itemstring = false
setting = minetest.setting_getbool("doc_items_show_itemstrings")
if setting ~= nil then
doc.sub.items.settings.itemstring = setting
@@ -238,7 +238,7 @@ end
local itemstring_factoid = function(itemstring, playername)
local privs = minetest.get_player_privs(playername)
- if doc.sub.items.settings.itemstring and (privs.give or privs.debug) then
+ if doc.sub.items.settings.itemstring or (privs.give or privs.debug) then
return S("Itemstring: \"@1\"", itemstring)
else
return ""
diff --git a/settingtypes.txt b/settingtypes.txt
index 554458e..8b9d635 100644
--- a/settingtypes.txt
+++ b/settingtypes.txt
@@ -8,6 +8,9 @@
#This feature might be removed in later versions if it becomes obsolete.
doc_items_friendly_group_names (Show “friendly” group names) bool false
-#If enabled, the mod will show the itemstring of the entry for each item.
-#This is useful for power users and programmers.
-doc_items_show_itemstrings (Show itemstrings) bool true
+#If enabled, the mod will show the itemstring of the entry for each item to
+#all players. If disabled, the itemstring will only be shown to players
+#with the “give” or “debug” privilege.
+#The itemstring is useful to power users and programmers and
+#is used e.g. for the /give and /giveme commands.
+doc_items_show_itemstrings (Show itemstrings) bool false