MonGen's Cave Docs
  • Welcome here!
  • Premium Products
    • mc-DiscordLink
      • Plugin FAQ
      • Commands
      • Feature Help
        • Setup Discord Bot
        • Bot Settings
        • Link System
        • Embed Builder
      • Supported Plugins
        • Rank Plugins
        • PlaceholderAPI
        • DiscordLinkProxy
        • Floodgate
      • Migrate Data
    • mc-Levels
      • Plugin FAQ
      • Commands
      • Supported Plugins
        • PlaceholderAPI
        • AxBooster
      • Developer API
    • mc-Credits
      • Plugin FAQ
      • Commands
      • Feature Help
        • GUI Options
      • Supported Plugins
        • PlaceholderAPI
      • Developer API
    • mc-Homes
      • Plugin FAQ
      • Commands
      • Feature Help
        • Safe Teleport
        • Home Name
  • Free Products
    • mc-FunGun
      • Plugin FAQ
      • Supported Plugins
      • Commands
    • mc-PlayerVisibility
      • Plugin FAQ
      • Supported Plugins
      • Commands
    • mc-IPGuard
      • Plugin FAQ
      • Supported Plugins
      • Commands
    • mc-Scheduler
      • Plugin FAQ
      • Commands
      • Supported Plugins
        • PlaceholderAPI
  • REACH US HERE
  • Discord Support
  • BuiltByBit
  • SpigotMC
  • Polymart
Powered by GitBook
On this page
  • Regex Filtering – How It Works & How to Customize It
  • 🔍 What the current regex does
  • 🧩 How to add your own regex (even if you're not a regex expert)
  • ✍️ Tips for Regex Editing
  1. Premium Products
  2. mc-Homes
  3. Feature Help

Home Name

This section of the configuration controls how players can name their homes. It provides fine-grained control over name length, color codes, and content filtering using both word blacklists and regula

Regex Filtering – How It Works & How to Customize It

Regular expressions (regex) are powerful text-matching patterns used to block unwanted home names. While they can look complicated, this section will help you understand what the current regex does and how to add your own rules easily, even without advanced knowledge.

🔍 What the current regex does

regex: "(?i)(([a-zA-Z0-9.-]+)?\\.(gg|com|net|org|xyz|co|me|io|hu|uk|us|de|fr|it)(\\s|$)|f[uú][cçkq][kq])"

This pattern is designed to block:

  1. Domain names and server ads Examples it will block:

    • example.com

    • mycoolserver.net

    • play.server.gg

  2. Swear word variations Specifically obfuscated forms of the word fuck, like:

    • fúck, fuçk, fuqk, fück

It uses case-insensitive matching ((?i)), so it also blocks uppercase versions.

🧩 How to add your own regex (even if you're not a regex expert)

If you want to block something specific (e.g., names like "test123" or any word containing "hack"), you can simply extend the existing regex pattern using | (OR).

Example: Block “test123” and anything starting with “hack”

regex: "(?i)(([a-zA-Z0-9.-]+)?\\.(gg|com|net|...)(\\s|$)|f[uú][cçkq][kq]|test123|hack[a-z]*)"

💡 | means OR 💡 hack[a-z]* blocks "hack", "hacker", "hacking", etc.

✍️ Tips for Regex Editing

  • Always escape backslashes (\\. instead of just .) in YAML.

  • Wrap the entire expression in quotes ("..."), especially when using special characters.

PreviousSafe TeleportNextmc-FunGun

Last updated 1 month ago

Test your regex online using tools like before adding it to your config.

regex101.com