minetest.register_privilege

From Minetest Developer Wiki
Jump to: navigation, search

Contents

Syntax

minetest.register_privilege("name", privilege definition)

Description

Registers privilege.

Privilege definition

Either "description text" or {description = "description text",give_to_singleplayer = boolean} could be used as a privilege definition.

Note that give_to_singleplayer is true by default.

Examples

minetest.register_privilege("interact", "Player can dig and place nodes.")


minetest.register_privilege("fly", {
	description = "Player can fly around using the free_move mode.",
	give_to_singleplayer= false,
})
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox