summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-12 13:09:17 +0100
committerWuzzy <almikes@aol.com>2016-12-12 13:09:17 +0100
commite88cd975f45f009e9b734fe888ccfe3bc6616c05 (patch)
tree6c4a7a238e2e96ddf878eed91848e8c4f1f1294e /init.lua
parent4beb4c008ea9daf0224377c15beb1091cb948247 (diff)
Change chat commands
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/init.lua b/init.lua
index 23a6c72..6146ce0 100644
--- a/init.lua
+++ b/init.lua
@@ -1134,9 +1134,9 @@ end
minetest.register_on_player_receive_fields(doc.process_form)
-minetest.register_chatcommand("doc", {
+minetest.register_chatcommand("helpform", {
params = "",
- description = S("Open help"),
+ description = S("Open a window providing help entries about Minetest and more"),
privs = {},
func = function(playername, param)
doc.show_doc(playername)
@@ -1224,14 +1224,14 @@ end
-minetest.register_privilege("doc_reveal", {
- description = S("Allows you to reveal all hidden help entries with /doc_reveal"),
+minetest.register_privilege("help_reveal", {
+ description = S("Allows you to reveal all hidden help entries with /help_reveal"),
give_to_singleplayer = false
})
-minetest.register_chatcommand("doc_reveal", {
+minetest.register_chatcommand("help_reveal", {
params = "",
- description = S("Reveals all hidden help entries to you"),
+ description = S("Reveal all hidden help entries to you"),
privs = { doc_reveal = true },
func = function(name, param)
doc.mark_all_entries_as_revealed(name)