minetest.privs_to_string

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

Description

Returns "priv1,priv2,…".

Example

minetest.register_chatcommand("privs", {
	params = "<name>",
	description = "print out privileges of player",
	func = function(name, param)
		if param == "" then
			param = name
		end
		minetest.chat_send_player(name, "Privileges of "..param..
			": "..minetest.privs_to_string(minetest.get_player_privs(param), ' '))
	end,
})
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox