minetest.check_player_privs

From Minetest Developer Wiki
Jump to: navigation, search

Contents

Syntax

Description

Check privileges of a player. Returns a boolean and a list of missing privileges.

Parameters

1: Player name

2: List of boolean permissions

Examples

local can_access = minetest.check_player_privs("foobar", {server=true})
local can_access, missing_privs = minetest.check_player_privs("foobar", {server=true,foo=true})
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox