
Список изменений
Added:
Ability to disable the /clear command via config.yml (commands.clear.enabled). Sender placeholder in broadcast: {sender} (with {player} kept for backward compatibility). Full public API (fc.plugins.fcchat.api) for integration with other plugins: FcChatApi, FcChatApiProvider. API events: FcChatApiReadyEvent, FcChatBroadcastEvent, FcChatPrivateMessageEvent, FcChatChannelSwitchEvent. Registration of context placeholders ({ctx:key} / {context:key}). Audience resolver for custom broadcast audience. Action handler API.
API is now registered as a Bukkit Service + provider on plugin startup. AI Chat Moderator (via OpenRouter): Settings in moderation.yml (endpoint, api-key, model, prompt, blocked-message). Blocking message sending based on AI decision. Management commands: /fcchat ai stats — shows block statistics + logger status. /fcchat ai logger — enable/disable AI logger.
Online logger for admins: notification about hidden message + hover with block reason. Permissions: fcchat.ai.manage, fcchat.ai.logger. Tab-completion for the new AI commands.
Improved message display logic during AI checking: Sender sees the message locally first. After successful AI check, the message is sent to everyone else (without duplicating it for the sender).
Support for Toast notifications for pings via NMS across versions 1.16.5–1.21.11.
Changed:
new-player-chat now uses real in-game time from world/player statistics (vanilla stats), instead of storing time in a separate plugin file. Default broadcast format has been updated to display the sender.
Fixed:
Improved version handling and fallback logic in Toast/NMS for newer 1.21.x versions. Fixed scenarios where broadcast or channel switch were cancelled by external plugins (added separate cancellation messages). Improved parsing and robustness of AI moderator responses (including fallback for different response formats).
Optimization / Refactoring:
Removed unused code and redundant fields/classes: PlayerInfoManager, FormatCache and related unused calls. Simplified PrivateMessageManager, PlayerTimeManager and parts of chat/channel managers.
Commands /broadcast, /msg, /reply, /clear, and channel switching have been moved to a unified API layer for better extensibility.
