1
0
Fork 0
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:
Perttu Ahola 2012-03-31 17:26:44 +03:00
parent 13159c1a48
commit 36c9463467
2 changed files with 48 additions and 12 deletions

View file

@ -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