projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36bfc67
)
lua_api.txt: Improve privilege definition (#8912)
author
ANAND
<ClobberXD@gmail.com>
Sun, 8 Sep 2019 10:34:44 +0000
(18:34 +0800)
committer
SmallJoker
<SmallJoker@users.noreply.github.com>
Sun, 8 Sep 2019 10:34:44 +0000
(12:34 +0200)
doc/lua_api.txt
patch
|
blob
|
history
diff --git
a/doc/lua_api.txt
b/doc/lua_api.txt
index 130610328b5de12dd46e7b005ce66461f92aadab..76253300f01b377972fdf42b4c6e1f87d758cd16 100644
(file)
--- a/
doc/lua_api.txt
+++ b/
doc/lua_api.txt
@@
-7023,10
+7023,11
@@
Privilege definition
Used by `minetest.register_privilege`.
{
- description = "Can teleport", -- Privilege description
+ description = "",
+ -- Privilege description
- give_to_singleplayer =
fals
e,
- -- Whether to grant the privilege to singleplayer
(default true)
.
+ give_to_singleplayer =
tru
e,
+ -- Whether to grant the privilege to singleplayer.
give_to_admin = true,
-- Whether to grant the privilege to the server admin.