Commit graph

115 commits

Author SHA1 Message Date
4ee5393a5e refactor: Remove all legacy managers, complete SOLID migration 2026-02-23 12:17:37 +01:00
74482851aa refactor: Remove emoji system and chat filters, implement SOLID architecture 2026-02-23 12:10:51 +01:00
16a5e09118 Fix final compilation warnings
- Removed unused imports and variables in HeadEmojiManager
- Clean compilation with no warnings
- All features working correctly
- Ready for production use
2026-01-23 22:08:46 +01:00
01d8c3a2e7 Complete config redesign and feature additions
🎨 Config Redesign:
- Unified style for all config files with beautiful headers
- Consistent color scheme using gradients throughout
- Improved readability with proper sections and comments
- Fixed color formatting issues

✨ New Features:
- SkinsRestorer integration for custom skins support
- Head emoji system (:head_nickname: and @head nickname)
- Clear chat message configuration command (/clearchatconfig)
- Enhanced custom commands with more examples
- Improved emoji system with 200+ emojis

📝 Documentation:
- Completely rewritten README.md with modern styling
- Added comprehensive feature descriptions
- Detailed command and permission tables
- Configuration examples and usage guides
- Professional formatting and structure

🔧 Technical Improvements:
- Fixed compilation errors
- Improved code organization
- Better error handling
- Enhanced compatibility

All configs now follow consistent MiniMessage gradient styling!
2026-01-23 22:06:46 +01:00
e616667c78 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.
2026-01-23 21:52:17 +01:00
4f7b792633 Adapt LoChat for Minecraft 1.20.1 Paper
- Changed dependency from Folia API 1.21.4 to Paper API 1.20.1
- Updated plugin.yml: api-version to 1.20, folia-supported to false
- Replaced Folia-specific scheduler calls with FoliaUtil for compatibility
- Updated version to 1.5.5-1.20.1
- Fixed enum switch warning in ChatListener
- Removed unused imports
- All tests pass successfully
2026-01-23 21:46:26 +01:00
67b8b9e47c Update to version 1.5.5 with latest changes 2026-01-23 21:41:49 +01:00
3aa6291765 Fix legacy color codes (§) support in ChatFormatter
- Added conversion for § color codes to MiniMessage format
- Now supports both & and § legacy color codes
2026-01-03 12:42:23 +01:00
d00ecc88d5 Fix Folia compatibility and allow self-mute
- Use FoliaUtil.runAsync instead of scheduler.runTaskAsynchronously
- Remove self-mute restriction (can now mute yourself)
2026-01-03 12:40:05 +01:00
b74fa21272 Major mute system overhaul
Commands:
- /mute <nick> [time] [-s] [reason] - mute player
- /unmute <nick> [-s] - unmute player
- /mutelist - list active mutes
- /mutehistory <nick> - player mute history
- /muteblame <moderator> - mutes issued by moderator

Features:
- Configurable messages with placeholders (%player%, %operator%, %duration%, %reason%)
- Duration permissions: lochat.mute.dur.<time> (10m, 30m, 1h, 6h, 12h, 1d, 3d, 7d, 14d, 30d, perm)
- Silent mute: -s flag (requires lochat.mute.silent)
- See silent mutes: lochat.mute.see-silent
- Default reason configurable (default: Нету.)
- Auto-use max allowed duration if not specified
- All settings in config.yml under 'mute' section
2026-01-03 12:34:32 +01:00
d92799613e Add /lmutelist and /lmutehistory commands
- /lmutelist - shows all active mutes with remaining time
- /lmutehistory <player> - shows mute history for a player
- Added mute history tracking (mute-history.json)
- History includes: who muted, when, duration, reason, unmute info
- Permissions: lochat.mutelist, lochat.mutehistory
2026-01-03 12:29:24 +01:00
c6175d9d61 Add built-in mute system with /lmute and /lunmute commands
- Added MuteManager for handling mutes with persistence (mutes.json)
- Added /lmute <nick> <time> [-s] [reason] command
- Added /lunmute <nick> [-s] command
- Time formats: 1d, 2h, 30m, 60s, 0 for permanent
- -s flag for silent mute/unmute (no broadcast)
- Mute check integrated into ChatListener
- Removed LibertyBans API dependency (using built-in system)
2026-01-03 12:20:35 +01:00
d44c5f811f Update LibertyBans integration to compatibility mode
- Removed API dependency due to JitPack build issues
- Implemented event-based compatibility approach
- LibertyBans will handle mute enforcement directly
- Added proper plugin presence detection
- Simplified chat processing for better compatibility
- Build now succeeds without external API dependencies
2026-01-02 15:01:13 +01:00
ee626c8d8b Fix color preservation when changing prefix and add LibertyBans integration
- Fixed issue where gradient colors were lost when changing prefix
- Updated GradientGUIListener to preserve existing colors when setting prefix
- Updated GradientPrefixCommand to pass existing colors to confirmation GUI
- Added LibertyBans integration (simple version without API dependency)
- Added LibertyBans to softdepend in plugin.yml
- LibertyBans integration detects plugin presence but relies on LibertyBans own mute handling
2026-01-02 14:52:48 +01:00
ef1a6320cb Remove mute/unmute commands from plugin.yml 2026-01-01 23:48:12 +01:00
8ac304cc07 Fix &#RRGGBB color format support with lowercase normalization 2026-01-01 23:43:22 +01:00
712a8a3353 Remove TextDisplay, display name updates, mute system, and filter/censorship 2026-01-01 23:40:02 +01:00
a87a942b28 Remove unnecessary comments from all Java files 2026-01-01 23:24:24 +01:00
20c90b6ef9 Fix TextDisplayManager: Add hide/show methods for sneak functionality 2026-01-01 23:21:36 +01:00
798e52eff9 v1.5.5: Add &b&l formatting support, fix teleport issue, add display settings to config, hide TextDisplay on sneak 2026-01-01 23:14:16 +01:00
000f1962e0 Add support for legacy color formats &#RRGGBB and #RRGGBB in YAML configs 2025-12-31 14:52:42 +01:00
4494c457a4 Fix prefix showing colors when disabled + add customizable TextDisplay format with placeholders 2025-12-31 14:47:58 +01:00
8712a98a87 Fix TextDisplay height + visibility settings + fix PM placeholders showing gradient names 2025-12-31 14:37:14 +01:00
d8721138d9 Remove ChatColor system - unified all color handling in GradientModule + fix color formats 2025-12-31 14:29:49 +01:00
dbb6a61351 Add TextDisplay system for floating gradient names above players (1.19.4+) 2025-12-30 23:28:10 +01:00
64c672c02e Fix prefix display logic and add updateall admin command for display names 2025-12-30 23:20:36 +01:00
cc8f4b0f92 Fix gradient display names - convert &#RRGGBB to §x format for player names above heads 2025-12-30 23:13:54 +01:00
7b76f75e36 Fix gradient colors in chat - convert &#RRGGBB to MiniMessage <#RRGGBB> format 2025-12-30 23:00:43 +01:00
30d2c97e4f Fix Folia chat colors - use Component API properly - ChatListener: use MessageConfig.getComponent() for error messages - ChatManager: build format string then parse with MiniMessage.deserialize() - ChatFormatter.convertAllColors: made idempotent (skip if already has <color:#>) - Removed old formatGlobalMessage/formatLocalMessage methods - All chat messages now properly rendered with colors 2025-12-30 22:46:58 +01:00
2bc9cfd761 Fix Folia chat colors - use Component API properly - ChatListener: use MessageConfig.getComponent() for error messages - ChatManager: build format string then parse with MiniMessage.deserialize() - ChatFormatter.convertAllColors: made idempotent (skip if already has <color:#>) - Removed old formatGlobalMessage/formatLocalMessage methods - All chat messages now properly rendered with colors 2025-12-30 22:34:25 +01:00
8c6fb2c92e Fix Folia chat colors - use Component API properly - ChatListener: use MessageConfig.getComponent() for error messages - ChatManager: build format string then parse with MiniMessage.deserialize() - ChatFormatter.convertAllColors: made idempotent (skip if already has <color:#>) - Removed old formatGlobalMessage/formatLocalMessage methods - All chat messages now properly rendered with colors 2025-12-30 22:17:45 +01:00
8824ccd60f Fix MiniMessage HEX format - use <color:#rrggbb> instead of <#rrggbb> 2025-12-30 22:04:07 +01:00
f4752000c8 Fix HEX color parsing - normalize to lowercase - Added normalizeMiniMessageHex to convert existing <#RRGGBB> tags to lowercase - convertHexColors now outputs lowercase hex codes - Added send/getComponent methods to MessageConfig 2025-12-30 22:01:48 +01:00
d2c45b3f0c Fix MiniMessage color parsing in commands - Added send() method to GradientMessages for proper Component parsing - Updated all gradient commands to use msg.send() instead of player.sendMessage(msg.get()) - Now <#RRGGBB> tags are properly converted to colors in chat 2025-12-30 21:59:33 +01:00
29ae373554 Fix GUI colors and TAB placeholder format - applyGradient uses &#RRGGBB for GUI (LegacyComponentSerializer) - Added applyGradientTabFormat for TAB plugin (§x§R§R§G§G§B§B) - PlaceholderAPIHook now uses TAB format for %lochat_full% - Updated tests to match new formats 2025-12-30 21:54:34 +01:00
036382b71a feat: add color support (&#RRGGBB and #RRGGBB) to all configs 2025-12-30 21:47:02 +01:00
76f3c480ad fix: gradient messages now properly process colors through ChatFormatter 2025-12-30 21:43:20 +01:00
3fddf48cb3 style: replace remaining MiniMessage tags with &#RRGGBB format 2025-12-30 21:34:29 +01:00
7f2c384d8a style: replace MiniMessage colors with &#RRGGBB format 2025-12-30 21:30:09 +01:00
212640a64e docs: update TODO.md with completed features 2025-12-30 21:19:39 +01:00
c4d2768423 feat: add mute/unmute commands with MuteManager 2025-12-30 21:19:07 +01:00
55c965603f Исправлен баг с отображением градиента в GUI: теперь используется MiniMessage формат для правильного отображения градиента 2025-12-30 21:08:27 +01:00
cb60c29e91 Переделал фильтр чата: слова теперь в JSON, добавлен поиск по фрагментам, улучшена защита от обхода фильтра 2025-12-30 20:55:46 +01:00
2292137986 Исправлен фильтр чата: добавлена нормализация сообщений, защита от обхода фильтра, точный поиск слов с word boundaries 2025-12-30 20:48:29 +01:00
d49261988e Исправлены баги: zip file closed в кастомных командах, рандомные цвета в GUI, обновлена версия до 1.5.4, добавлена инструкция по кастомным командам в README 2025-12-30 20:40:09 +01:00
1d75327a4d Добавлен DisplayNameListener: префикс и цвет ника теперь отображаются возле ника в игре 2025-12-30 20:38:08 +01:00
ee67dcc12a Переделал настройки цветов: /chatcolor теперь принимает &b формат, добавлена поддержка #RRGGBB в конфигах 2025-12-30 20:35:10 +01:00
c6442bc88f fix: chatcolor now works when player doesn't use color codes 2025-12-30 13:48:47 +01:00
5c1230bc16 fix: TAB hex format and chat color codes support 2025-12-30 13:43:12 +01:00
ed796a4264 v1.5.3: Улучшена обработка цветовых кодов 2025-12-30 13:05:16 +01:00