minetest-mods / areas

A rewrite of the node_ownership Minetest mod with many new features.
GNU Lesser General Public License v2.1
51 stars 52 forks source link

Allow areas to be optionally open to all other users #1

Closed CiaranG closed 10 years ago

CiaranG commented 10 years ago

In other words, you can retain ownership of an area but disable and re-enable the protection aspect at will, via the area_open chat command.

By default, nothing is any different following this commit - all existing areas are protected, as are new ones. But you can do (for example) "area_open 1 yes" and if you're the owner of that area, it's now possible for other users to interact there. "area_open 1 no" to switch the protection back on.

Where there are sub-areas, the main owner and ALL sub-area owners at a particulare location must have set the areas to open to disable protection.

ShadowNinja commented 10 years ago

Thanks! Added as 1a5efd07f1360059e70b450734c9a6df0a2f46ca. (with some minor modification)

CiaranG commented 10 years ago

Liked the minor modifications, thanks!