Features Overview
- Chat Locking - Prevent non-staff from sending messages
- Chat Clearing - Clear chat for all players at once
- Word Filtering - Block or censor inappropriate words
- Command Blocking - Prevent execution of specific commands
Chat Locking
Lock and unlock chat to prevent players from sending messages. Useful during events or announcements.Commands
hubbly.command.lockchat
Bypass Permission: hubbly.bypass.chat_lock
Configuration
config.yml
true, chat starts locked when the server starts.
How It Works
Players are notified
All online players receive a message indicating chat has been locked or unlocked, including who locked/unlocked it.
Players with the
hubbly.bypass.chat_lock permission can still send messages even when chat is locked.Chat Clearing
Clear chat for all online players instantly.Command
hubbly.command.clearchat
Implementation
The clear chat command sends 100 empty messages to all online players:ClearChatCommand.java
Word Filtering (Anti-Swear)
Automatically detect and handle inappropriate words in chat messages.Configuration
config.yml
Configuration Options
enabled
enabled
Enable or disable word filtering.Type: Boolean
Default:
Default:
falsemethod
method
How to handle blocked words:
Options:
STAR- Replace the blocked word with asterisks (****)CANCEL- Cancel the entire message and notify the player
Options:
STAR, CANCELwords
words
List of words to block or censor.Type: List of Strings
Note: Case-insensitive matching
Note: Case-insensitive matching
Filter Methods
CANCEL Method
Blocks the entire message and notifies the player:STAR Method
Replaces blocked words with asterisks:Implementation
The word filter uses regex pattern matching:ChatListener.java
Command Blocking
Prevent players from executing specific commands.Configuration
config.yml
Command blocking is handled by
CommandBlockerListener which checks commands before they execute.Best Practices
Set up staff permissions
Grant chat management permissions to trusted staff members only:
hubbly.command.lockchathubbly.command.clearchathubbly.bypass.chat_lock
Configure word filter carefully
- Start with
method: STARfor less disruptive filtering - Test your word list to avoid false positives
- Regularly update the blocked words list
Block dangerous commands
Always block commands like:
pl,plugins(information disclosure)op,deop(security)stop,reload(server control)
Disabled Worlds
Chat management features respect the disabled worlds configuration. Word filtering and chat locking can be configured to work globally or respect world restrictions:config.yml
Locale Messages
Customize chat management messages in your language files:languages/en.yml
Troubleshooting
Chat lock not working
Chat lock not working
- Verify the player has
hubbly.command.lockchatpermission - Check that ChatListener is registered
- Ensure LockChat manager is initialized
Word filter not catching words
Word filter not catching words
- Confirm
blocked_words.enabledistrue - Check words are properly formatted in the list
- Verify the player’s world is not disabled
- Test with simple, obvious words first
Players bypassing command blocks
Players bypassing command blocks
- Check for conflicting plugin permissions
- Verify CommandBlockerListener is registered
- Ensure blocked_commands list is properly formatted
Clear chat not working
Clear chat not working
- Confirm sender has
hubbly.command.clearchatpermission - Check for chat plugin conflicts
- Verify players are online when command is executed
Related Features
- Main Configuration - Automated chat announcements configuration
- Permissions - Configure who can manage chat
- Main Configuration - Customize chat management messages