Easy Brushes
  • Easy Brushes
  • Overview
  • FAQ
  • Install Guide
  • Support
  • Changelog
  • Features
    • Mechanics
      • Action Types
    • Preview System
    • Commands
    • Undo
    • Config
    • Particles
    • Sounds
    • Placeholders
    • Palettes
    • Settings
    • Patterns
  • EXPERIMENTAL FEATURES
    • Performance (EXPERIMENTAL)
    • World Guard (EXPERIMENTAL)
    • Durability (OLD)
  • Examples
    • Brush Examples
    • Language Configuration Example
  • My Other Plugins
    • Easy Placeholders
Powered by GitBook
On this page
  • WorldGuard Integration
  • Overview
  • Region Protection
  • Permission Integration
  • Area Restrictions
  1. EXPERIMENTAL FEATURES

World Guard (EXPERIMENTAL)

WorldGuard Integration

Overview

EasyBrushes integrates deeply with WorldGuard to provide:

  • Region protection

  • Build permissions

  • Area restrictions

Region Protection

How It Works

  1. Build Checks

    • Every block placement is checked against WorldGuard regions

    • Respects region flags and permissions

    • Prevents unauthorized building

  2. Selection Validation

    if (!plugin.getBrushManager().canBuild(player, block)) {
        // Building not allowed in this region
    }

Region Flags

WorldGuard flags that affect brushes:

  • build: Controls block placement

  • block-place: Specific block placement control

  • use: Controls brush usage

Permission Integration

Region-Specific Permissions

brushes:
  paintbrush:
    available_blocks:
      stone:
        material: STONE
        permission: region.build.stone

Permission Hierarchy

  1. WorldGuard Region Permissions

  2. Brush-Specific Permissions

  3. Block-Specific Permissions

Area Restrictions

Placeable Areas

placeable_on: ALL  # ALL, SPECIFIC
  • ALL: Can place on any block (still respects WorldGuard)

  • SPECIFIC: Only on defined blocks

Region-Based Restrictions

Example WorldGuard region setup:

regions:
  build-zone:
    flags:
      build: allow
      use: allow
  no-build:
    flags:
      build: deny
      use: deny
PreviousPerformance (EXPERIMENTAL)NextDurability (OLD)

Last updated 3 months ago