mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Improve /grant and /revoke output, add /auth_reload
This commit is contained in:
parent
13159c1a48
commit
36c9463467
2 changed files with 48 additions and 12 deletions
|
@ -532,6 +532,7 @@ minetest.privs_to_string(privs) -> "priv1,priv2,..."
|
|||
minetest.set_player_password(name, password_hash)
|
||||
minetest.set_player_privs(name, {priv1=true,...})
|
||||
minetest.get_player_privs(name) -> {priv1=true,...}
|
||||
minetest.auth_reload()
|
||||
^ These call the authentication handler
|
||||
minetest.check_player_privs(name, {priv1=true,...}) -> bool, missing_privs
|
||||
^ A quickhand for checking privileges
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue