mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
The callback can now be invoked with either the player object or name as
the first parameter, and with either a table or a list of strings, like
this:
minetest.check_player_privs(player_name, { shout = true, fly = true })
minetest.check_player_privs(player_name, "shout", "fly")
minetest.check_player_privs(player, { shout = true, fly = true })
minetest.check_player_privs(player, "shout", "fly")
|
||
|---|---|---|
| .. | ||
| auth.lua | ||
| chatcommands.lua | ||
| deprecated.lua | ||
| detached_inventory.lua | ||
| falling.lua | ||
| features.lua | ||
| forceloading.lua | ||
| init.lua | ||
| item.lua | ||
| item_entity.lua | ||
| misc.lua | ||
| mod_profiling.lua | ||
| privileges.lua | ||
| register.lua | ||
| statbars.lua | ||
| static_spawn.lua | ||
| voxelarea.lua | ||