What I Fixed: ChatClear only sent 1 newline message
Now ChatClear sends 100 newline messages
Why This Works Better: Individual Messages: Each empty string is sent as a separate message, properly pushing old messages off screen Client Compatibility: Works with all Minecraft clients and chat UI mods Immediate Effect: Chat is cleared instantly for all players Better Logging: Added proper logging and player count feedback Improved Feedback: Shows how many players were affected
Additional Improvements Added:
Player count feedback to the command sender Console logging for administrative tracking Better confirmation messages Maintained bypass permission for staff who don't want to see clear notifications
The /chatclear command now properly clears the chat for all online players by sending 100 individual empty messages, which is the standard method used by most chat management plugins!