mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 14:42:24 +01:00
lua_api.txt: Improve privs_to_string and string_to_privs documentation (#9228)
This commit is contained in:
parent
e8fd1ce623
commit
468eb4bf57
@ -4336,9 +4336,13 @@ Setting-related
|
||||
Authentication
|
||||
--------------
|
||||
|
||||
* `minetest.string_to_privs(str)`: returns `{priv1=true,...}`
|
||||
* `minetest.privs_to_string(privs)`: returns `"priv1,priv2,..."`
|
||||
* Convert between two privilege representations
|
||||
* `minetest.string_to_privs(str[, delim])`:
|
||||
* Converts string representation of privs into table form
|
||||
* `delim`: String separating the privs. Defaults to `","`.
|
||||
* Returns `{ priv1 = true, ... }`
|
||||
* `minetest.privs_to_string(privs[, delim])`:
|
||||
* Returns the string representation of `privs`
|
||||
* `delim`: String to delimit privs. Defaults to `","`.
|
||||
* `minetest.get_player_privs(name) -> {priv1=true,...}`
|
||||
* `minetest.check_player_privs(player_or_name, ...)`:
|
||||
returns `bool, missing_privs`
|
||||
|
Loading…
Reference in New Issue
Block a user