minetest.check_player_privs - Uberi/MineTest-API GitHub Wiki

minetest.check_player_privs

Description

privs is a table {priv1=true,...}

returns bool, missing_privs

Syntax

[boolean](../type/boolean.html), [table](../type/table.html) check_player_privs([string](../type/string.html) name, [table](../type/table.html) privs)

Examples

Example 1:

local can_access = minetest.check_player_privs("foobar", {server=true})

Example 2:

local can_access, missing_privs = minetest.check_player_privs("foobar", {server=true,foo=true})
⚠️ **GitHub.com Fallback** ⚠️