Simple protection

+
Preview images

A Minetest area protection mod, based on a fixed claim grid. It is based on ideas of the LandRush mod and splits the world into claim-cuboids. Every cuboid/area is 16x80x16 nodes large (adjustable) and allows sharing access with other players.

Areas can be claimed using a Claim Stick (simple_protection:claim):Punch a node somewhere in the area you would like to claim. A green text with your name will appear on the bottom left side if it succeed.Admins get some additional power with the simple_protection privilege which allows editing, modifying and deleting any area.

I seem to be missing something here... Installed mod, ran server, claimed area with stick and logged out... Logged in as different user and tampered with area and it let me do anything even though it was clearly shown as someone else's area... ? any ideas ?

TenPlus1 wrote:I seem to be missing something here... Installed mod, ran server, claimed area with stick and logged out... Logged in as different user and tampered with area and it let me do anything even though it was clearly shown as someone else's area... ? any ideas ?

The vote options do not fit. I don't like mods that hurt players who dig flowers in seemingly untouched nature and who ban regular players on a regular basis because..well..regular players tend to build, and not all neighbours might be considerate enough to constantly share all areas.

Also, an 8x8 blocks area is pretty small. Even my houses usually won't fit in there. Considering the price for a claim stick, people might be discouraged from larger buildings.

The very idea of including that functionality is frowned upon by me :-)

I like the idea of there being a punishment however it would be better if the punishment was only given if a player continually tried to place or break the exact same block in a protected area. That way you would not be punishing a client who placed a block by mistake.

Last edited by Achilles on Mon Apr 14, 2014 18:12, edited 1 time in total.

I have simple_protection running on a standalone server and after some testing found that I cannot open locked chests or doors properly, the weirder thing is that they work so long as I'm holding a wooden door while opening them ?!?!?! I know, strange... And now random wooden doors appear throughout the map and it only happens when this mod is active...

Xanadu server was using the latest daily build with only simple_protection mod as protection... The mod had the same symptoms on standalone v6, v7 mapgens with only simple_protection loaded... Am using Lubuntu 14.04 32-bit (that shouldn't be an issue)... Will try to nap some screenshots next time I had a blank world loaded with mod enabled and left for some time to gather doors...

I report a bug in Simple Shooter and [Mod] Tunnel Boring Machine [0.4 beta] [tbm]I have a minetest crash with only Simple protection and Simple shooter when i use "Flare Gun" in Simple shooter modI have a minetest crash with only Simple protection and TBM when it start.And nothing in debug.txt. Separately it worksIf you want to test.

It is possible now to force players to claim an area before they can dig anything.Warning! The player won't be able to dig trees or anything other to craft a claim stick. It is required to give them a claim stick when they join or when they ask for one.The only exception is under the maximal claim depth (if enabled)

Recent changes

Rename table simple_protection -> s_protect- Renamed the mod-internal table name to 's_protect' to follow the naming of the configuration files- Corrected the spelling error in the settings: 'claim_heigh' -> 'claim_height'- Increased the default area size to the landrush default: 16x16 (Y-axis still 80 nodes)- Fully backwards compatible with already existing world settings

Byakuren wrote:Why not change your mod name to match the table name too? This is the convention and prevents globals collisions.

That's a good point but this would require a manual change in the world config when someone wants to update it. Also the Github link would become invalid and requires a new configuration too - thus it's better to keep the mod name this way.

I'm not worried about the globals collisions - using two protection mods on a server is not recommended anyway. If there somewhen appear such issues (when we have a thousand mods more) then it's best to create an issue for that, so it can be resolved quickly.