OVERVIEW
MyChatClear is a high-performance chat management utility, rebuilt for modern servers. Now powered by Java 21 and MiniMessage, it offers absolute control over your server's communication with minimal overhead.
FEATURES
Professional tools to keep your chat clean and organized.
● Event-Driven Auto-Clear: Automatically triggers after a set number of messages.
● Advanced Locking: Lock chat with custom reasons and global broadcasts.
● HEX & Gradients: Full MiniMessage support for all system messages.
● Smart Bypassing: Fine-tuned permissions for staff and VIPs.
MANAGEMENT
Separated command logic for intuitive administration.
COMMANDS: /chatclear [self|reason] - General clearing
COMMANDS: /mycc [lock|reload] [reason] - Admin control
New Trigger Logic
Auto-clear now monitors message counts in real-time. Once the threshold is met, the plugin starts a configurable countdown with warnings before clearing.
Enhanced Lock Control
Locked state now supports reasons that are visible to all players. Staff can bypass lock state to provide updates or instructions.
Code:# +--------------------------------------------------------------------------+ # | MyChatClear | # | Developed by fvl1s | # +--------------------------------------------------------------------------+ # Core plugin functionality settings settings: # Amount of empty lines sent during global chat clear (Integer) lines-to-clear: 100 # Amount of empty lines sent during personal clear (/chatclear self) (Integer) self-lines-to-clear: 100 # Post-clear cooldown in seconds where players cannot chat (Integer) cooldown-after-clear: 5 # Automatic chat clear parameters based on message threshold auto-clear: # Enable or disable the automatic clearing system (Boolean) enabled: true # Message threshold to trigger the clear countdown (Integer) min-messages: 50 # Countdown duration in seconds after reaching the threshold (Integer) warning-time: 15 # Localization and visual notification configuration messages: # System prefix replacing the <prefix> placeholder in all messages (String) prefix: "<aqua>MyChatClear <white>| " # Message sent when a player lacks required permissions (String) no-permission: "<prefix><red>You do not have permission to use this command." # Message sent upon successful configuration reload (String) reload-success: "<prefix><green>Configuration reloaded successfully." # Global notification for chat clear without a reason (String) chat-cleared: "<prefix><aqua>Chat has been cleared by <white><author><aqua>." # Global notification for chat clear with a specified reason (String) chat-cleared-reason: "<prefix><aqua>Chat has been cleared by <white><author> <aqua>Reason: <white><reason>" # Private message to player after /chatclear self (String) self-cleared: "<prefix><green>Your chat has been cleared." # Chat lock notification without a reason (String) lock-enabled: "<prefix><red>Global chat has been locked by <white><author><red>." # Chat lock notification with a reason (String) lock-enabled-reason: "<prefix><red>Global chat has been locked by <white><author><red>. Reason: <white><reason>" # Chat unlock notification (String) lock-disabled: "<prefix><green>Global chat has been unlocked by <white><author><green>." # Message sent to players attempting to chat while locked (String) chat-is-locked: "<prefix><red>Chat is currently locked. You cannot send messages." # Notification for the automatic clear countdown (String) auto-clear-warning: "<prefix><yellow>Chat will be cleared in <white><time> <yellow>seconds." # Final broadcast after automatic clear completion (String) auto-clear-broadcast: "<prefix><aqua>Chat was automatically cleared for optimization." # Message sent to players attempting to chat during cooldown (String) cooldown-active: "<prefix><red>Please wait <white><time>s <red>before typing." # Help menu lines displayed when using the main command without arguments (List) help-menu: - "<aqua>MyChatClear <white>Help Menu:" - "<white>/chatclear [reason] <aqua>- Clear global chat" - "<white>/chatclear self <aqua>- Clear your personal chat" - "<white>/mycc lock [reason] <aqua>- Toggle chat lock state" - "<white>/mycc reload <aqua>- Reload configuration files"
