eternalcombat
4 min read
Regions & WorldGuard
Configure protected regions and WorldGuard integration
Configure protected regions and WorldGuard integration
EternalCombat protects players from escaping fights, by preventing them from entering safe zones.
When a player is in combat and tries to enter a protected region:
This prevents players from escaping fights by running to spawn or other safe zones.
First, create your protected region using WorldGuard:
//wand
# Select two corners of your region
/rg define spawn
Open plugins/EternalCombat/config.yml and add your region name to the blockedRegions list:
regions:
blockedRegions:
- spawn
- safezone
- pvp-arena-lobby
The region name must exactly match the WorldGuard region name. Region names are case-sensitive!
Reload EternalCombat to apply changes:
/combatlog reloadTag yourself in combat and try to enter the region:
/combatlog tag YourName
# Now try to walk into the protected region
You should be pushed back with an animated border visible.
regions:
# List of blocked region names - ADD YOUR REGIONS HERE
blockedRegions:
- spawn
- safezone
# Block regions where WorldGuard has PvP disabled
preventPvpInRegions: true
# Spawn region radius if WorldGuard is not installed
restrictedRegionRadius: 10
| Option | Type | Default | Description |
|---|---|---|---|
| blockedRegions | list | [] | WorldGuard region names to block |
| preventPvpInRegions | boolean | true | Auto-block regions with PvP disabled |
| restrictedRegionRadius | int | 10 | Spawn protection radius (no WorldGuard) |
When preventPvpInRegions is enabled, EternalCombat will automatically block entry to:
This means you don't need to manually add every safe region to blockedRegions.
For most servers, just enable preventPvpInRegions: true and EternalCombat will automatically protect all regions with PvP disabled.
Use blockedRegions for additional regions that have PvP enabled but should still be protected during combat.
If a region is in both WorldGuard (with PvP disabled) AND blockedRegions:
If you don't have WorldGuard installed, EternalCombat will create a circular spawn protection zone:
regions:
# Radius of the protected spawn area
restrictedRegionRadius: 10
This creates a 10-block radius protection zone around the world spawn point.
The visual border that appears at protected regions can be customized:
border:
# How far players can see the border
distance: 6.5
block:
enabled: true
type: RAINBOW_GLASS
particle:
enabled: true
type: DUST
color: RAINBOW
See Configuration for all border options.
Configure how strongly players are pushed away from protected regions:
knockback:
# Knockback strength (1.0 = 2-4 blocks)
multiplier: 1
# Delay before forcing the player out
forceDelay: 1s
Setting a very high knockback multiplier may cause:
Recommended values: 0.5 to 2.0