Fix missing features and improve code quality
Features fixed: - Added chat filter functionality (block/warn/censor modes) - Fixed spy command to monitor all chat messages - Added proper spy notifications for global/local chat Code quality improvements: - Created PlayerUtil to eliminate code duplication in player lookup - Refactored ChatListener into smaller, focused methods - Added Constants class to replace magic numbers - Improved SOLID principles compliance - Fixed all compilation warnings All features from README are now implemented and working.
This commit is contained in:
parent
4f7b792633
commit
e616667c78
20 changed files with 250 additions and 99 deletions
|
|
@ -39,10 +39,11 @@ spy:
|
|||
enabled: "CADFШпион режим включен"
|
||||
disabled: "CADFШпион режим выключен"
|
||||
format: "󅒐[SPY] {sender} → {receiver}: {message}"
|
||||
chat-format: "󅒐[SPY] {type} {sender}: {message}"
|
||||
|
||||
filter:
|
||||
blocked: "CADFСообщение заблокировано (мат)"
|
||||
warned: "CADFПредупреждение: не используйте мат!"
|
||||
warning: "CADFПредупреждение: не используйте мат!"
|
||||
|
||||
cooldown:
|
||||
wait: "CADFПодождите {time} сек перед следующим сообщением"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue