Skip to main content

Zones

Understanding SafeZones and WarZones for server administration.

Zones

HyperFactions provides two special zone types for server administration: SafeZones and WarZones. These are admin-managed areas with special rules that can span multiple chunks.

Zone System Overview

Zones are named entities that can contain multiple chunks, providing flexible area management for server administrators.

Key features:

  • Named zones (e.g., "spawn", "arena", "market")
  • Multi-chunk support with radius claiming
  • 15 configurable flags per zone
  • GUI-based management
  • Priority over faction claims

For Server Admins

Zone management requires the hyperfactions.admin.zones permission. Regular players cannot create or modify zones.

SafeZones

SafeZones are protected areas where PvP is disabled and players are generally safe. Ideal for spawn points, trading areas, and community spaces.

SafeZone Default Flags

FlagDefaultDescription
Combat Flags
pvp_enabledfalsePlayers cannot damage other players
friendly_firefalseFaction members cannot hurt each other
projectile_damagefalseProjectiles deal no damage
mob_damagefalseMobs cannot damage players
Building Flags
build_allowedfalsePlayers cannot place or break blocks
block_interacttrueGeneral block interaction allowed
Interaction Flags
door_usetruePlayers can use doors and gates
container_usefalsePlayers cannot access chests or storage
bench_usefalsePlayers cannot use crafting tables
processing_usefalsePlayers cannot use furnaces or smelters
seat_usetruePlayers can sit on seats and mounts
Item Flags
item_dropfalsePlayers cannot drop items (prevents littering)
item_pickuptruePlayers can pick up items
Damage Flags
fall_damagefalseNo fall damage
environmental_damagefalseNo drowning or suffocation

Common SafeZone Uses

  • Server spawn areas
  • Server hubs and lobbies
  • Trading centers and markets
  • Event venues
  • Tutorial areas
  • NPC villages

SafeZone Design Tip

SafeZones disable item dropping by default to prevent players from littering spawn areas with unwanted items.

WarZones

WarZones are designated combat areas where PvP is always enabled but building is blocked to prevent griefing.

WarZone Default Flags

FlagDefaultDescription
Combat Flags
pvp_enabledtruePvP combat is enabled
friendly_firefalseFaction members still protected
projectile_damagetrueProjectiles deal damage
mob_damagetrueMobs can damage players
Building Flags
build_allowedfalseNo block placement/breaking (anti-grief)
block_interacttrueGeneral block interaction allowed
Interaction Flags
door_usetruePlayers can use doors and gates
container_usefalseNo container access
bench_usefalseNo crafting table access
processing_usefalseNo furnace/smelter access
seat_usetruePlayers can sit on seats and mounts
Item Flags
item_droptruePlayers can drop items
item_pickuptruePlayers can pick up items
Damage Flags
fall_damagetrueFall damage applies
environmental_damagetrueEnvironmental hazards active

Common WarZone Uses

  • PvP arenas
  • Event battlegrounds
  • Resource competition areas
  • King of the Hill zones
  • Boss fight arenas

Arena Design

WarZones are perfect for designated PvP arenas. Deaths in WarZones still cause power loss by default, but this creates consequences for reckless fighting.

Zone Flags Reference

All 15 zone flags organized by category:

Combat Flags (4)

FlagDescriptionServer Event
pvp_enabledPlayer vs player damageDamage event with player source
friendly_fireSame-faction damageDamage event with faction check
projectile_damageArrow/projectile damageDamage event with projectile source
mob_damageMob to player damageDamage event with entity source

Building Flags (2)

FlagDescriptionServer Event
build_allowedBlock place/breakBreakBlockEvent, PlaceBlockEvent
block_interactGeneral block interactionUseBlockEvent

Interaction Flags (5)

FlagDescriptionServer Event
door_useDoors and gatesDoorInteraction
container_useChests, backpacksOpenContainerInteraction
bench_useCrafting tablesOpenBenchPageInteraction
processing_useFurnaces, smeltersOpenProcessingBenchInteraction
seat_useSeats, chairs, mountsMountInteraction

Item Flags (2)

FlagDescriptionServer Event
item_dropDropping itemsDropItemEvent
item_pickupPicking up itemsInteractivelyPickupItemEvent

Damage Flags (2)

FlagDescriptionServer Event
fall_damageFall damageDamage with DamageCause.FALL
environmental_damageDrowning, suffocationDamage with EnvironmentSource

Zone Management

Creating a Zone

  1. Create the named zone:

    /f admin zone create <safe|war> <name>
    

    Example: /f admin zone create safe spawn

  2. Claim chunks for the zone:

    Stand in each chunk and run:

    /f admin zone claim <name>
    

    Or use radius claiming:

    /f admin zone radius <name> <radius> [circle]
    

Radius Claiming

Claim multiple chunks efficiently:

Square radius:

/f admin zone radius spawn 5

Claims an 11×11 chunk area (5 chunks in each direction from center).

Circular radius:

/f admin zone radius spawn 5 circle

Claims a circular area with 5-chunk radius.

Radius Calculation

A radius of N creates a square of (2N + 1) × (2N + 1) chunks, or a circle inscribed within that area.

Managing Zones

Remove a single chunk from current position:

/f admin zone unclaim

Delete an entire zone:

/f admin zone delete <name>

This removes the zone definition and unclaims all its chunks.

List all zones:

/f admin zone list

List zones by type:

/f admin zone list safe
/f admin zone list war

Immediate Effect

Zone changes take effect immediately. Players in the area will be subject to new rules instantly.

Modifying Zone Flags

Via Admin GUI:

/f admin

Navigate to Zones → Select zone → Configure Flags

Screenshot Needed

Screenshot: admin-zones.png

Description: Admin zone management interface showing zone list and flag configuration

Key elements to capture:

  • Zone list with safe/war indicators
  • Flag toggle interface
  • Radius claim controls

Zone Priority

Zone rules override faction claims:

SafeZone > WarZone > Faction Claim > Wilderness

Priority Override

If a chunk is marked as a SafeZone, previous faction claims are effectively suspended. SafeZone rules apply regardless of prior ownership. The faction still "owns" the claim, but zone rules take precedence.

Visual Indicators

Zones appear on the faction map with distinct markers:

Zone TypeColorMap Symbol
SafeZoneBright GreenS
WarZoneBright RedW
Your FactionYour ColorF
EnemyRedE
AllyGreenA
NeutralYellowN
WildernessGray.

Use /f map to see zone boundaries visually.

Zone Storage

Zone data is stored in:

mods/com.hyperfactions_HyperFactions/zones.json

This file contains all named zones with their chunk lists and flag configurations.

Strategic Zone Placement

Server Spawn

Create a SafeZone around spawn:

  1. Create the zone: /f admin zone create safe spawn
  2. Use radius: /f admin zone radius spawn 3 circle
  3. Consider a buffer zone around the core area

Spawn Buffer

Consider creating a small SafeZone buffer around spawn exits to prevent spawn camping. A 2-3 chunk radius usually works well.

PvP Arena

Create a WarZone for dedicated PvP:

  1. Build your arena structure
  2. Create zone: /f admin zone create war arena
  3. Mark arena chunks: /f admin zone radius arena 2

Resource Areas

Consider WarZones for contested resources:

  • Encourages PvP conflict over valuable areas
  • Creates natural PvP hotspots
  • Building disabled prevents griefing

Market/Trading Areas

Create SafeZones for trading:

  1. Create zone: /f admin zone create safe market
  2. Claim the trading area
  3. Players can trade safely without PvP risk
  4. Consider enabling container_use if you have shop NPCs

Comparison Table

FeatureSafeZoneWarZoneFaction Claim
PvPNoYesConfigurable
BuildingNoNoOwner only
Power loss on deathYesYesYes
Can be claimed by factionsNoNoN/A
Admin onlyYesYesNo
Multi-chunkYesYesYes
Named entityYesYesNo
Custom flagsYes (15)Yes (15)Limited

Related Topics