build.lua 285 B

1234567891011121314
  1. function minetest.is_protected(pos, name)
  2. if minetest.check_player_privs(name, {build = true}) then
  3. return false
  4. else
  5. return true
  6. end
  7. end
  8. minetest.register_privilege("build", {
  9. description = "Can build",
  10. give_to_singleplayer = false,
  11. give_to_admin = true
  12. })