LPC Pro · Moderation
Anti-Advertising
Documents LPC Pro 4.0.0 · mirrored from the product wiki, updated 2026-02-07 · GitBook version
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.
allowed-domains:
- "yourserver.com"
- "discord.gg"
- "youtube.com"
Actions
| Action | Description |
|---|---|
CANCEL |
Block the message |
WARN |
Send the player a warning |
Bypass
Permission: lpcpro.bypass.advertising (default: op)