ConsoleFilterX icon

ConsoleFilterX -----

[1.21.x] Filters unwanted, spammy console messages. Save filter counts.




code changes

1. added tab completion
----------, Jan 4, 2025

  • Code optimization
  • Added LastSessionCount when you opt for filteredMessagesCount save
  • Minor enhancements.
----------, Dec 30, 2024

New:
1. optional Regex support (for advanced users).
- your regex should start and end with a forward slash "/"
- example: /^[A-Za-z]+\sGrowth\sModifier:\s\d+\%$/
- notice: no double quotes around the regex or else it'll error out.

2. if you opt to save filter count, it will now save per filter count alongside the total count

Modified:
permission to reload from consolefilter.admin -> consolefilter.reload
updated config.yml with comments/example for regex

Code (Text):
# PLUGIN CURRENT VERSION
version: "1.2.0"

# Enables/Disables daily update checks. true/false.
Check-For-Updates: true

# Persist total filter count AND per filter (It saves between restarts to avoid constant read/write operations)
Save-Filtered-Count: true

# Enables/Disables filtered message count console output every ten minutes. true/false
Output-Filtered-Messages-Count-To-Console: true

# Interval in minutes to output to console. Default every 10 minutes.
Output-Filtered-Messages-Count-Interval: 10

# Add here the patterns of messages you want to block from appearing in your console and logs.
# Each line represents a new pattern.
# NOTE! You don’t need to add the full message!
# The plugin will block any message that contains the text added below.

# Supports REGEX. The program will detect a regex form when you start and end the filter with a "/" (NO DOUBLE QUOTES)
# Check example below -
#
# EXAMPLE:
#
# Blocked-Messages:
# - "SPAM WARNING: ExampleMessage"
# - /^[A-Za-z]+\sGrowth\sModifier:\s\d+\%$/
#
# Any console message containing the text 'SPAM WARNING: ExampleMessage'
# will be blocked from appearing in the console and logs.
#
# If you have large errors, you don’t need to type the entire error message.
# However, be specific to avoid blocking unintended messages.

Blocked-Messages:
  - "*********************************"
----------, Dec 29, 2024

The plugin now starts early in the lifecycle (before most plugins) so you can start filtering early.
----------, Dec 28, 2024

Apologies, the previous update wasn't working as intended due to initial interval schedule. (it wasn't applying new interval value after reload)

This update fixes the issue.

updated changes:

1. the program now correctly detects interval changes and reschedules the task accordingly
2. safe-guards against negative values
----------, Dec 27, 2024

Added ability to configure console count output interval in minutes.

new config.yml (again all options show up automatically after updating, but this is just to keep things tidy)

Code (YAML):
# PLUGIN CURRENT VERSION
version
: "1.1.1"

# Enables/Disables daily update checks. true/false.
Check-For-Updates
: true

# Persist total filter count (It saves between restarts to avoid constant read/write operations)
Save-Filtered-Count
: true

# Enables/Disables filtered message count console output every ten minutes. true/false
Output-Filtered-Messages-Count-To-Console
: true

# Interval in minutes to output to console. Default every 10 minutes.
Output-Filtered-Messages-Count-Interval
: 10

# Add here the patterns of messages you want to block from appearing in your console and logs.
# Each line represents a new pattern.
# NOTE! You don’t need to add the full message!
# The plugin will block any message that contains the text added below.
#
# EXAMPLE:
#
# Blocked-Messages:
# - 'SPAM WARNING: ExampleMessage'
#
# Any console message containing the text 'SPAM WARNING: ExampleMessage'
# will be blocked from appearing in the console and logs.
#
# If you have large errors, you don’t need to type the entire error message.
# However, be specific to avoid blocking unintended messages.

Blocked-Messages
:
 - "*********************************"
 
----------, Dec 27, 2024

Hi all,

Added the ability to count filtered messages and display to console every 10 mins (can be enabled/disabled in config.yml)

Added the ability to save the total count so you have an idea how much this tool is filtering.

The save happens between server restarts (when the plugin gets disabled) to avoid constant read/writes (doesn't hinder performance)

Here is the latest config.yml file if you need all the comments, organization, and whatnot, otherwise all config.yml fields are added automatically.

Code (YAML):
# PLUGIN CURRENT VERSION
version
: "1.1.0"

# Enables/Disables daily update checks. true/false.
Check-For-Updates
: true

# Persist total filter count (It saves between restarts to avoid constant read/write operations)
Save-Filtered-Count
: true

# Enables/Disables filtered message count console output every ten minutes. true/false
Output-Filtered-Messages-Count-To-Console
: true

# Add here the patterns of messages you want to block from appearing in your console and logs.
# Each line represents a new pattern.
# NOTE! You don’t need to add the full message!
# The plugin will block any message that contains the text added below.
#
# EXAMPLE:
#
# Blocked-Messages:
# - 'SPAM WARNING: ExampleMessage'
#
# Any console message containing the text 'SPAM WARNING: ExampleMessage'
# will be blocked from appearing in the console and logs.
#
# If you have large errors, you don’t need to type the entire error message.
# However, be specific to avoid blocking unintended messages.

Blocked-Messages
:
 - "*********************************"
 
----------, Dec 26, 2024

Added the ability to opt out of daily update checks in config.yml

Check-For-Updates: true or false
----------, Dec 26, 2024

Added daily update checker to get notified if there is a new update.
----------, Dec 26, 2024

A daily scheduled update-checker was added to this update , the point is for it to notify server owners if there is a new version available.
----------, Dec 25, 2024

A daily scheduled update-checker was added to this update , the point is for it to notify server owners if there is a new version available.
----------, Dec 25, 2024

v 1.0.1
You'll notice that the filter now works as intended

Things like "[Player] moved too quickly!" will get filtered if you put in "moved too quickly!" in the config.yml
----------, Dec 25, 2024

Resource Information
Author:
----------
Total Downloads: 484
First Release: Dec 25, 2024
Last Update: Jan 4, 2025
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings