Pl3xConsoleFilter: Console Spam Filter for Minecraft

Understanding the Console Spam Problem on Minecraft Servers Every server administrator knows the frustration of a cluttered console. You are monitoring player activity, checking for errors, and suddenly a flood of messages like "[INFO] Connection reset" fills the log. It appears every 30 to 60 se...

Download Pl3xConsoleFilter

Original name: Pl3xConsoleFilter

FileVersionLoaderSize
Pl3xConsoleFilter.jar——15 КБDownload

Understanding the Console Spam Problem on Minecraft Servers

Every server administrator knows the frustration of a cluttered console. You are monitoring player activity, checking for errors, and suddenly a flood of messages like "[INFO] Connection reset" fills the log. It appears every 30 to 60 seconds, burying the information you actually need. This spam often begins after listing your server on multiple server listing sites. Those sites ping your server to fetch stats, and while the pings are harmless, the constant disconnection notices can make console management a nightmare. Blocking the pings entirely might remove your server from those listings, so a smarter solution is required.

Introducing Pl3xConsoleFilter: A Lightweight Console Cleaner

Pl3xConsoleFilter is a simple yet powerful plugin designed to filter unwanted messages from your server console and log output. Instead of trying to stop the source of the spam, it intelligently suppresses the noise, leaving your console clean and readable. Originally built to silence the notorious "Connection reset" message, the plugin has evolved to allow custom filtering rules. This means you can tailor it to hide any repetitive, non-critical messages that clutter your view, from metrics reporting to specific disconnect reasons.

Key Features and How They Improve Server Management

The plugin's strength lies in its flexibility. You are not stuck with a predefined list of filtered phrases. By editing the config.yml file, you can add or modify rules using several string comparators. This allows precise control over what gets hidden. Here is a breakdown of the available comparators that you can use in your configuration:

  • equals – Matches the exact message text.
  • equalsignorecase – Same as equals but case-insensitive.
  • contains – Hides any line that contains the specified substring.
  • endswith – Filters messages ending with a particular string.
  • startswith – Filters messages beginning with a particular string.
  • matches – Uses regular expressions for advanced pattern matching.

With these tools, you can target almost any repetitive log entry. The default configuration already includes filters for "Connection reset" and common metrics errors, but you can expand it to cover plugin load messages, debug output, or anything else that distracts from genuine alerts.

Installation and Setup: Getting Pl3xConsoleFilter Running

Installing the plugin is straightforward. Download the latest build and place the JAR file into your server's plugins folder. Restart the server, and the plugin will generate a default config.yml in the Pl3xConsoleFilter directory. If you are upgrading from version 1.3 or earlier, you must delete your old config file to avoid compatibility issues. Once the file is generated, you can open it and start customizing the filter lists.

For those who prefer a streamlined experience, managing plugins like Pl3xConsoleFilter becomes even simpler with a modern launcher. The foxygame.net launcher provides a convenient and flexible way to handle your Minecraft server add-ons, allowing you to download and install plugins directly from its menu without manually moving files. This saves time and reduces the chance of misplacing crucial JARs.

Editing the Config.yml for Custom Filters

The configuration structure is intuitive. Under the filters section, you define a log level (like INFO or WARN), then a comparator type, and finally a list of strings to match. For example, to hide all messages containing "lost connection: disconnect.quitting", you would add it under the contains list. The plugin processes these rules in order, and any matching line is silently dropped from the console output.

A sample config might look like this:

filters:
  INFO:
    equals:
      - Connection reset
    contains:
      - 'lost connection: disconnect.quitting'
      - '[Metrics] Server returned HTTP response code: 502'

Remember to use proper YAML syntax. After making changes, you can reload the config without restarting the server by using the in-game command.

Commands and Permissions for Server Operators

Starting from version 1.2, Pl3xConsoleFilter includes a reload command that allows you to apply configuration changes on the fly. The main command is /pl3xconsolefilter, with aliases /consolefilter, /cf, and /pcf for quick access. Running the command without arguments displays the plugin version. Adding reload as an argument reloads the config from disk. This is incredibly useful when you are testing new filter patterns and want immediate feedback without disrupting players.

The plugin also introduces a permission node: pl3xconsolefilter.pl3xconsolefilter. Grant this to operators or trusted staff who need to manage console filtering. By default, only OPs have access, but you can integrate it with your permission plugin of choice.

Why Console Filtering Matters for Server Health

A clean console is more than an aesthetic preference. When you are diagnosing lag, tracking down griefers, or monitoring plugin conflicts, every line counts. Spam messages can cause you to miss critical warnings, like a corrupted chunk or a failing permission check. By filtering out known benign noise, Pl3xConsoleFilter helps you maintain focus on real issues. It also reduces the size of log files over time, making archival and review much easier.

Additionally, the plugin uses Plugin Metrics to collect basic anonymous stats like version and player count. This is standard for many plugins and helps developers understand usage. If you prefer to disable this, simply edit the metrics config file in /plugins/PluginMetrics/config.yml.

Expanding Your Filter Library: Practical Examples

Once you are comfortable with the comparators, you can tackle a wide range of console clutter. For instance, if a particular plugin spams "Loaded 0 advancements" every minute, you can add a contains filter for that phrase. If you use a chat plugin that logs every message, you might filter startswith "[Chat]" to keep the console focused on system events. The matches comparator is perfect for complex patterns, like hiding all messages that include a timestamp in a specific format. The community often shares useful regex snippets, so you never have to start from scratch.

Conclusion: Take Control of Your Server Console

Pl3xConsoleFilter is a tiny plugin with a massive impact on server administration. It solves a specific, nagging problem that nearly every server owner faces: the slow creep of useless log spam. With its straightforward YAML configuration, flexible string comparators, and live reload capability, it puts you back in command of your console. Whether you are running a small private server or a large public network, keeping your logs clean is essential for efficient management. Install it today, customize your filters, and enjoy a clutter-free console that lets you focus on what truly matters—building and maintaining an amazing Minecraft experience for your players.