Basic Ownership

An efficient and flexible node-based protection scheme for multiplayer worlds

API / Library

Download (2 KB)

How do I install this?

Basic Ownership provides an abstraction layer for node-based protection schemes in Minetest Game.

It was originally released in 2017 in conjunction with my GiftBox mod. Since several of my other mods now depend on this API, I decided it would be worthwhile to create a forum topic to post announcements and bug fixes.

The API of Default is extended to simplify the process of checking ownership of individual nodes, with support for anonymous and non-existent owners as well. It also permits players to dig nodes that rightfully belong to them, even in protected areas (where normally, this would not be allowed).

The following API functions are provided:

default.is_superuser(player_name)
default.is_owner(pos, player_name)
default.set_owner(pos, player_name)

The new 'superuser' privilege, when granted to a player, will give the player access to any owned nodes while also bypassing prorection.

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Used By