Skip to content

Worldguard

deveriku edited this page Apr 7, 2026 · 1 revision

WorldGuard

Vexora VeinMiner has built-in WorldGuard support with two layers of protection.


Setup

No setup needed. If WorldGuard is installed and enabled, Vexora detects it automatically on startup:

  ✓ WorldGuard integration enabled

How It Works

Vexora checks WorldGuard in two ways:

  1. Built-in hook — Checks the BLOCK_BREAK flag on the origin block before starting the vein mine
  2. BlockBreakEvent — Each individual block in the vein is also checked via the general protection system (if protection-check: true)

This double check ensures full compatibility even with complex region setups.


Config

worldguard:
  enabled: true
  check-build-flag: true
  custom-flag: false
Key Default Description
worldguard.enabled true Enable WorldGuard integration
worldguard.check-build-flag true Check BLOCK_BREAK flag on origin block
worldguard.custom-flag false Reserved for future custom flag support

Region Examples

Deny vein mining in a region:

/rg flag <region> block-break deny

This prevents both normal breaking and vein mining.

Allow vein mining for members only:

/rg flag <region> block-break -g members allow
/rg flag <region> block-break -g nonmembers deny

Bypass Permission

Players with vexora.veinminer.bypass.world can vein mine regardless of world restrictions, but WorldGuard region flags are still respected unless the player is a region member/owner.


Troubleshooting

Vein mining still works in protected regions:

  • Check that worldguard.enabled: true and worldguard.check-build-flag: true
  • Make sure the region has block-break deny flag set
  • Test with a non-OP, non-member player
  • Verify WorldGuard is loaded: check console for ✓ WorldGuard integration enabled

WorldGuard not detected:

  • Make sure WorldGuard is installed and enabled
  • Check that WorldGuard loads before VexoraVeinMiner (it should, since it's in softdepend)

Clone this wiki locally