minetest.register privilege/de

From Minetest Developer Wiki
Jump to: navigation, search

Contents

Syntax

minetest.register_privilege("name", privilege definition)

Beschreibung

Registriert Privilegien.

Privilege Definition

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

Info: give_to_singleplayer ist standartmäßig true.

Beispiele

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