Go to file
OgelGames c943cd7d4a remove display entity after digging 2021-02-09 20:31:24 +11:00
.github/workflows Use luacheck on pull requests 2020-01-27 14:04:56 -06:00
textures priv protector 2019-02-22 11:28:26 +01:00
.luacheckrc luacheck fix and upstream check of register_protector 2020-01-27 08:36:37 +01:00
LICENSE.txt priv protector 2019-02-22 11:28:26 +01:00
areas.lua Simpler param matching + formatting tabs to spaces 2020-11-28 20:13:49 +01:00
init.lua area priv protection 2019-12-26 19:13:51 +01:00
mod.conf Use mod.conf for dependencies 2020-01-27 14:03:08 -06:00
protector.lua remove display entity after digging 2021-02-09 20:31:24 +11:00
readme.md area priv protection 2019-12-26 19:13:51 +01:00

readme.md

priv_protector for minetest

Adds a protection block that checks the priv of the builder/digger

Usage

Define a few global privs that you want to give out to trusted builders:

minetest.register_privilege("protect_streets", {
	description = "Protection for common streets"
})

Place the priv_protector block and change the "Privilege" field to protect_streets or whatever you want to protect with

Area integration

Additional area mod commands:

  • area_priv_set Sets a privilege for the area (the area needs to be opened with /area_open <id> for this to work)
  • area_priv_get Returns the privilege, if any, required for that area