# About Rules

In ExcellentClaims, everything that happens inside claims is controlled by claim rules. 
This system is very similar to others you have probably already worked with (e.g., WorldGuard).

Unlike other plugins, rules in ExcellentClaims are very flexible and modular. 
They range from simple boolean flags to advanced lists with blacklist or whitelist modes and a customizable list of entries.

!!!success
All rules can apply to any claim type: lands, regions, or wilderness.
!!!

## :icon-phs-hand-tap: Usage

Claim owners and members with specific [claim permissions](/core/member-roles) can manage claim rules using the methods provided by each claim module:
- [Land Management](/lands/management)
- [Region Management](/regions/management)
- [Wilderness Management](/wilderness/management)

## :icon-phs-gear: Module Configuration

The configuration file for the Rules module is located at `/config/rules/settings.yml`.

```yaml settings.yml
General:
  # Prefix for all chat messages from the Rules module.
  Prefix: '<gradient:#cb2d3e:#ef473a><b>PROTECTION</b></gradient> <dark_gray>»</dark_gray> '
  # Whether to listen for high frequency events (e.g. BlockFromToEvent) and enable relative rules.
  # [Server restart required]
  Allow-High-Frequency-Rules: true
Rules:
  BlockGrowEvent:
    # Whether to reset block's age value if claim rule denies block growing.
    # This will reduce frequency of BlockGrowEvent event calls and grow rules checks.
    # This also will prevent blocks from growing instantly when grow rule reset or set in allow mode.
    # [Server restart required]
    Reset-Block-Age: true
  Command-Use:
    # List of commands blocked by default in all new claims.
    Default-Blacklist:
    - tpyes
    - tpaccept
    - sethome
    - setwarp
```

## :icon-phs-gear: Rules Configuration

The configuration files for the actual rules are located in the `/rules/` folder in the root directory of the plugin.

In these files, you can change the default value of the rule for new claims and customize their visual style.

```yaml amethyst_grow.yml
Options:
  Name: Amethyst Grow
  Description:
  - <gray>Controls whether amethysts can</gray>
  - <gray>grow here.</gray>
  Icon:
    Material: minecraft:medium_amethyst_bud
    Lore: []
Default-Value: true
```
