lua_api.txt: Improve privilege definition (#8912)
authorANAND <ClobberXD@gmail.com>
Sun, 8 Sep 2019 10:34:44 +0000 (18:34 +0800)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Sun, 8 Sep 2019 10:34:44 +0000 (12:34 +0200)
doc/lua_api.txt

index 130610328b5de12dd46e7b005ce66461f92aadab..76253300f01b377972fdf42b4c6e1f87d758cd16 100644 (file)
@@ -7023,10 +7023,11 @@ Privilege definition
 Used by `minetest.register_privilege`.
 
     {
-        description = "Can teleport",  -- Privilege description
+        description = "",
+        -- Privilege description
 
-        give_to_singleplayer = false,
-        -- Whether to grant the privilege to singleplayer (default true).
+        give_to_singleplayer = true,
+        -- Whether to grant the privilege to singleplayer.
 
         give_to_admin = true,
         -- Whether to grant the privilege to the server admin.