theFox6 / working_villages

A mod for minetest that adds villagers performing work
https://content.minetest.net/packages/theFox/working_villages/
MIT License
13 stars 10 forks source link

Feature/protection #25

Closed scrain777 closed 2 years ago

scrain777 commented 2 years ago

Incorporated consistent protection into mod.

  1. All actions checked.
  2. Configurable using the working_villages_owner_protection setting. Possible values include:
    • false (default), no villager will change anything in any protected area. Adheres to Minetest API docs.
    • true, owned villagers may make changes in owner's protected areas.
    • ignore, villagers may make changes anywhere.
    • prefix, owned villagers may make changes if the pseudo-user prefix:owner is allowed to make changes in the protected area. Unowned villagers may make changes is prefix:working_villages:self_employed is allowed.
      1. If the areas mod is present, it is patched to allow players to grant ownership of an area to prefix:owner for any owner.
scrain777 commented 2 years ago

I have carefully tested the "prefix" setting, but have not tested the other options yet. Extra eyes appreciated.

scrain777 commented 2 years ago

All settings have been tested. Will leave open a day or so for any comments before merging.