Changelog
Key Changes Made:
-
Converted Bukkit ChatFilterModule to Velocity
- Replaced Bukkit events with Velocity events (
PlayerChatEvent
) - Updated imports and dependencies
- Removed Bukkit-specific code
- Added async event handling with
EventTask
- Replaced Bukkit events with Velocity events (
-
Updated Project Dependencies
- Added SnakeYAML dependency for YAML configuration parsing
- Maintained existing Adventure Text dependencies
-
Integrated into Main Plugin
- Modified
SkyeNetV.java
to initialize and register the chat filter - Added command registration for
/chatfilter
- Updated chat event handler to work with filtered messages
- Modified
-
Created Command Interface
ChatFilterCommand.java
provides admin commands- Supports reload functionality
- Permission-based access control
-
Network-wide Filtering
- Now filters messages across ALL servers connected to the Velocity proxy
- Works before messages reach individual servers
- Integrates with existing Discord integration
Features Implemented:
- Word List Filtering: Block specific words/phrases
- Regex Pattern Filtering:
- IP address detection and blocking
- Spam character detection (repeated characters)
- Excessive caps detection
- Custom regex patterns
- Bypass Permissions: Different permission levels for different filter types
- Configurable Messages: Customizable notification messages
- Real-time Configuration: Reload without restart
- Debug Mode: Detailed logging for troubleshooting
Configuration Files Created:
chatfilter-config.yml
- Main configurationchatfilter/wordlist.yml
- Blocked words listchatfilter/regex.yml
- Regex patterns and rules
Commands Added:
/chatfilter reload
- Reload configuration/chatfilter help
- Show help
Permissions Added:
skyenetv.chatfilter.admin
- Admin commandsskyenetv.chatfilter.bypass
- Bypass all filtersskyenetv.wordlist.bypass
- Bypass wordlist onlyskyenetv.regex.bypass
- Bypass regex only
Testing Notes:
The plugin has been successfully compiled and packaged. The JAR file is ready for deployment:
- Location:
/mnt/sda4/SkyeNetwork/SkyeNetV/target/SkyeNetV-2.2.jar
- Size: 40KB
- Status: ✅ Compiled successfully
- Version: Updated to 2.2 with chat filter integration
Configuration Loading:
The chat filter will automatically:
- Copy existing filter files from
filters/regex.yml
andfilters/wordlist.yml
to plugin data directory - Load comprehensive word list (785+ blocked terms)
- Load regex patterns for IP blocking, spam detection, caps filtering, and custom patterns
- Enable network-wide filtering across all connected servers
Deployment Instructions:
- Stop your Velocity server
- Replace the old plugin JAR with the new one
- Start your Velocity server
- The chat filter will automatically create default configuration files
- Customize the configurations as needed
- Use
/chatfilter reload
to apply changes without restart
Network Impact:
This implementation now provides network-wide chat filtering for your entire Velocity proxy network. Messages are filtered at the proxy level before they reach individual backend servers, ensuring consistent filtering across all servers in your network.
The chat filter integrates seamlessly with your existing Discord integration - only messages that pass the filter will be forwarded to Discord.
Files
SkyeNetV-2.2.jar(43.12 KiB) Primary Download
Details
Licensed MIT
Published 3 months ago
Updated 3 months ago