minetest.set player privs

Description
Sets the privileges of the specified player.


 * — name of the player of which to set the privileges
 * — a table containing the new privileges of the player. The keys are privilege names and the values are  . Privileges not specified are removed if the player had them before the call.

Examples
This code grants the “fly” privilege to Example Player without affecting the other privileges:

This code revokes the “fly” privilege from Example Player without affecting the other privileges:

This code revokes all privileges from Example Player: