# This file is parsed in "settings.lua". Check regex first.

# Static paths do not work well with settings
#areas.filename (Configuration file path) string (world_path)/areas.dat

# Use smallest area volume precedence concept. (experimental; may change)
#
# If set to `true`:
#    The interaction permission is defined by the smallest area volume that
#    contains the interaction position. Granting access to areas is achieved
#    by factions instead of using `/add_owner`.
#    This allows players to have private areas within a greater open/shared
#    area and also define open/shared areas within those private areas.
# If set to `false`: (default)
#    Interacting is permitted if the interaction position resides in any of the
#    player's own areas, shared or open areas.
#    This permission is not impacted by more restrictive, intersecting areas.
areas.use_smallest_area_precedence (Smallest area rules) bool false

# Allow players with a privilege create their own areas using /protect
# within the specified size and amount limits.
areas.self_protection (Self protection) bool true

# Self protection: Privilege required to protect an area
areas.self_protection_privilege (Self protection: Required privs) string interact

# Refresh delay for the name displays in the HUD in seconds
areas.tick (HUD update delay) float 0.5 0 100

# Enable the legacy owner_defs metatable mode. Untested and possibly unstable
areas.legacy_table (Legacy owner_defs metatable) bool false

[Self protection (normal)]

# Self protection (normal): Maximal size of the protectable area
# Only enter positive whole numbers for the coordinate values or you'll mess up stuff.
areas.self_protection_max_size (Maximal area size) v3f (64, 128, 64)

# Self protection (normal): Maximal amount of protected areas per player
areas.self_protection_max_areas (Maximal area count) int 999999

[Self protection (high)]

# Self protection (normal): Maximal size of the protectable area
# This setting applies for plyaers with the privilege 'areas_high_limit'
areas.self_protection_max_size_high (Maximal area size) v3f (512, 512, 512)

# Self protection (normal): Maximal amount of protected areas per player
# Only enter positive whole numbers for the coordinate values or you'll mess up stuff.
# This setting applies for plyaers with the privilege 'areas_high_limit'
areas.self_protection_max_areas_high (Maximal area count) float 32
