RegexBlock: Advanced Chat Filtering for Minecraft Servers

Mastering Chat Moderation with RegexBlock: A Comprehensive Guide for Minecraft Server Admins Running a Minecraft server comes with the joy of building a community, but it also brings the challenge of keeping chat clean and safe. Spam, unwanted links, and disruptive language can quickly ruin the e...

Download RegexBlock for Minecraft 1.6.4

Original name: RegexBlock

Minecraft: 1.6.4

FileVersionLoaderSize
RegexBlock.zip——27 КБDownload
RegexBlock.jar1.6.4—32 КБDownload

Mastering Chat Moderation with RegexBlock: A Comprehensive Guide for Minecraft Server Admins

Running a Minecraft server comes with the joy of building a community, but it also brings the challenge of keeping chat clean and safe. Spam, unwanted links, and disruptive language can quickly ruin the experience. That is where RegexBlock steps in — a powerful, permission-based plugin that gives you surgical control over what players can type in chat and commands. Instead of relying on simple word blacklists, RegexBlock uses regular expressions (regex) to match complex patterns, making it one of the most flexible moderation tools available for Bukkit and Spigot servers.

What Exactly Is RegexBlock?

RegexBlock is a chat and command filtering plugin that compiles regex patterns to detect and block unwanted content. Out of the box, it automatically blocks IP addresses and URLs from chat, but its real strength lies in the ability to define your own custom filters. You can add patterns manually in the configuration file before starting the server, or dynamically add and remove them in-game using commands. This means you can adapt your moderation rules on the fly without ever restarting the server.

Each filter consists of a unique name, a regex pattern, and a denial message that supports color codes. The plugin checks every chat message and command against all active filters, and if a match is found, the message is blocked and the player sees your custom denial reason. Because it is permission-based, you can fine-tune exactly which groups of players are affected — or exempt — from each rule.

Installation and Initial Setup

Getting RegexBlock up and running is refreshingly simple. Download the plugin JAR file and drop it into your server's plugins folder. Restart the server or run a reload command, and the plugin will generate its default configuration. No complicated dependencies are required — just Java 6 or higher.

For those who prefer a streamlined experience, the foxygame.net launcher offers a convenient way to install server-side mods like RegexBlock directly from its menu, making plugin management flexible and modern. Once installed, you can immediately start editing the configuration to define your own filters or rely on the built-in IP and URL blocking.

Configuring Your Filters

The configuration file is the heart of RegexBlock. It expects a very specific structure, so careful editing is essential. Each regex entry is defined under a name, with a pattern and a denial reason. Here is a visual reference of what the configuration looks like:

Screenshot displaying the RegexBlock plugin configuration file with regex pattern entries, denial reasons, and update-check settings for Minecraft servers.

As shown, you can set a custom name for each filter — just be mindful of non-English characters that might cause issues. The pattern field holds the actual regex expression that will be compiled and tested against player messages. The denial reason is the message shown to the player when their message is blocked, and you can use ampersand color codes (like &c for red) to make it stand out.

Additionally, the config includes an update-check option that notifies you of new plugin releases when the server starts. While not mandatory, keeping this enabled is recommended so you always have the latest features and fixes. RegexBlock also uses PluginMetrics for anonymous usage statistics, but you can disable it in the PluginMetrics directory just like with any other plugin.

In-Game Commands and Dynamic Management

All administrative tasks revolve around the /regexblock base command. The subcommand system is intuitive and well-documented. Here are the core commands you will use most often:

  • /regexblock reload – Reloads the plugin and grabs a fresh configuration from the file without restarting the server.
  • /regexblock list [regex-name] – Lists all active regex filters by name, or shows detailed information about a specific one.
  • /regexblock help [page-#] – Displays in-game help; you can browse additional pages if more commands are added in the future.
  • /regexblock remove <regex-name> – Deletes a filter by its name. If the name doesn’t exist, it will list the current filters for you.
  • /regexblock add – Finalizes a new filter from previously set fields. All fields must be filled first, or the plugin will remind you what is missing.

Building a new filter in-game is a multi-step process. You must first use the three sub-commands to set the name, pattern, and reason:

  • /regexblock add name <regex-name>
  • /regexblock add pattern <regex-pattern>
  • /regexblock add reason <denial-reason>

Once all three are defined, running /regexblock add compiles the regex and activates it immediately. This dynamic approach means you can respond to new forms of spam without ever touching the configuration file manually.

Permission Nodes and Bypass System

RegexBlock’s permission structure is what makes it truly powerful. By default, every player is subject to all active filters. To exempt certain players or groups, you assign bypass permissions. The nodes follow a logical pattern:

  • regexblock.bypass.<regex-name>.chat – Bypasses a specific filter in chat only.
  • regexblock.bypass.<regex-name>.commands – Bypasses a specific filter in commands only.
  • regexblock.bypass.<regex-name>.* – Bypasses both chat and command filtering for that regex.
  • regexblock.bypass.*.chat – Bypasses all chat filters.
  • regexblock.bypass.*.command – Bypasses all command filters.
  • regexblock.bypass.* – Bypasses every filter entirely.

For example, giving a moderator regexblock.bypass.urls.command would allow them to use URLs in commands while still blocking URLs in public chat. The wildcard regexblock.* grants all command and bypass permissions, which is handy for owners. Command permissions follow a similar scheme: regexblock.cmd.add, regexblock.cmd.remove, and so on. Granting any command node automatically implies regexblock.cmd, so players can at least see the base command.

Tips for Effective Regex Patterns

Crafting regex can be daunting if you are new to it, but there are plenty of online resources to learn the syntax. You can test your patterns against sample strings using tools like RegexPal before adding them to the server. Remember that a poorly written pattern can cause performance issues or false positives, so always test thoroughly. The plugin itself does not consider bad regex patterns a bug — it is up to you to provide valid expressions.

Conclusion

RegexBlock stands out as an essential tool for any server admin who values precise chat control. Its regex-based filtering catches patterns that simple word lists miss, while the dynamic add/remove commands and granular permission system give you unmatched flexibility. Whether you are blocking IPs, silencing offensive language, or preventing command abuse, RegexBlock adapts to your needs. With a straightforward installation and a configuration that is easy to master, it is a plugin that belongs in every serious server operator’s toolkit. Take the time to learn a bit of regex, and you will unlock a new level of moderation power for your Minecraft community.