๐ŸšซAnti-Advertising

The anti-advertising filter blocks URLs, IP addresses, and domains from being posted in chat. Configuration is in moderation/moderation.yml.

Configuration

anti-advertising:
  enabled: true

  # Block URLs/links
  block-urls: true

  # Block IP addresses
  block-ips: true

  # Domains that won't be blocked
  allowed-domains:
    - "example.com"
    - "yourserver.com"

  # Actions when advertising is detected
  actions:
    - CANCEL
    - WARN

  # Bypass permission
  bypass-permission: "lpcpro.bypass.advertising"

How It Works

The filter checks chat messages for:

  • URLs โ€” Matches common URL patterns (http://, https://, www.)

  • IP Addresses โ€” Matches IPv4 addresses (e.g., 192.168.1.1)

  • Domains โ€” Detects domain-like patterns (e.g., someserver.net)

Allowed Domains

Domains listed in allowed-domains are excluded from detection. Use this to whitelist your own server's website, Discord invite, or other trusted domains.

Actions

Action
Description

CANCEL

Block the message

WARN

Send the player a warning

Bypass

Permission: lpcpro.bypass.advertising (default: op)

Last updated