Skip to content

WorldGuard Regions

With WorldGuard 7 installed, dDeathPenalty registers a custom region flag so you can disable penalties inside specific regions — perfect for spawn, safe zones and arenas.

death-penalty

It’s a StateFlag that defaults to ALLOW, so penalties apply everywhere unless you explicitly deny it in a region.

/rg flag <region> death-penalty deny

Players who die inside that region keep everything. To re-enable:

/rg flag <region> death-penalty allow

(or -rg flag <region> death-penalty to clear it back to the default).

/rg flag spawn death-penalty deny

Custom WorldGuard flags must be registered during the server’s onLoad phase, before WorldGuard finishes enabling. dDeathPenalty handles this automatically when WorldGuard is present. If another plugin already registered a death-penalty flag, dDeathPenalty reuses it.

The region flag stacks with the other exemption methods: a death is penalised only if the profile is enabled, the player isn’t exempt/ignored, and the region allows it.