Commit graph

66 commits

Author SHA1 Message Date
Xujiayao
85af5d89d7 JDK 25 2026-03-18 21:50:10 +08:00
Xujiayao
6ec2b17fea Enhance console command response handling and add localized no-response messages 2026-03-18 20:58:34 +08:00
Xujiayao
e3216e2bc8 /console命令兼容LuckPerms,支持异步执行的命令
Fix #245
2026-03-18 20:21:28 +08:00
Xujiayao
5a0bf63315 format 2026-03-18 00:55:15 +08:00
Xujiayao
d8e3554a04 fix: update sound notification 2026-03-18 00:55:15 +08:00
copilot-swe-agent[bot]
931f987ca2 fix nested markdown edge cases and webhook reply formatting regression
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-18 00:55:15 +08:00
copilot-swe-agent[bot]
0824f3d786 fix markdown nesting and mention/reply regressions from latest review
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-18 00:55:15 +08:00
Copilot
43c1222a86 feat: implement Discord-to-Minecraft chat enhancements
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-18 00:55:15 +08:00
Xujiayao
758d1634d2 format 2026-03-18 00:55:15 +08:00
copilot-swe-agent[bot]
d16152ce2b fix: address code review feedback - safe truncation, doc fixes, style constant
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-18 00:55:15 +08:00
copilot-swe-agent[bot]
1329d5fdd9 feat: implement Discord-to-Minecraft chat forwarding
Add TextSegment, DiscordEventPacket, DiscordMessageParser,
EmojiShortCodeMapper, and wire up the full pipeline from
Discord message reception through network transmission to
Minecraft rendering with rich text, mentions, replies,
attachments, embeds, stickers, components, and markdown.

Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-18 00:55:15 +08:00
Xujiayao
d2a59cc56e Implement bot presence (status & activity) feature 2026-03-13 20:44:20 +08:00
Xujiayao
131aeaf718 人工修改多语言文件。仅zh_cn 2026-03-11 21:36:11 +08:00
copilot-swe-agent[bot]
71f38e953f refactor: restructure i18n keys for account linking system
- Merge player_join and code_generated messages into unified linking.message.not_linked_1/2/3
- Hardcode command strings (/dmcc unlink, /link code: {}, /dmcc link) in Java code
- Remove redundant "your code is: CODE" line from /dmcc link response
- Rename _suffix/_tail/_prefix naming to _1/_2/_3 pattern
- Move tooltip keys to linking.tooltip.click_to_copy/click_to_run
- Fix zh_cn: consumed phrasing, refresh wording, add "Minecraft" prefix to player references
- Remove dead buildCodeGeneratedMessage() method, unify into buildNotLinkedMessage()

Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-11 21:36:11 +08:00
copilot-swe-agent[bot]
b2f841e1fa Fix multiple review issues: resource leak, OP sync timing, network packet consistency, and more
- LinkedAccountManager: Fix resource leak with try-with-resources for BufferedReader
- MinecraftEventHandler: Use network packets for PlayerJoin link checks (no single_server special case)
- MinecraftEventHandler: Don't prompt already-linked players on join (joinCheck flag)
- LinkCommand/UnlinkCommand: Use network packets for both single_server and multi_server_client modes
- OpSyncManager: Run all sync operations on dedicated executor thread (DMCC-OpSync)
- OpSyncManager: Only include positive OP levels in sync map
- ServerHandler: Trigger OpSync on ServerStarted instead of PlayerJoin
- DiscordManager: Per-guild exception handling in retrieveMember()
- MojangUtils: Fix docstring for UUID format, remove unused offlineUuid()
- en_us.yml: Fix placeholder order in verification log messages
- MinecraftEventHandler: Fix Javadoc (remove "bold"), optimize OpSync event handler
- CoreEvents: Remove unused PlayerJoinLinkCheckEvent
- README.md: Update to reflect network-based player join link checking

Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-11 21:36:11 +08:00
Xujiayao
5aef1eb1c4 Format 2026-03-11 21:36:11 +08:00
Xujiayao
43afd2a265 rm Bold 2026-03-11 21:36:11 +08:00
Xujiayao
e2aefb4fb7 Reduce unnecessary ops.json file writing 2026-03-11 21:36:11 +08:00
Xujiayao
d97c8f472d 更好的op sync时机 2026-03-11 21:36:11 +08:00
copilot-swe-agent[bot]
9fbf1773ec Fix ClickEvent API, redesign link messages with inline click-to-copy/suggest, fix help visibility for MC players, fix OP sync on reload
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-11 21:36:11 +08:00
copilot-swe-agent[bot]
1945cf2e19 Fix compilation errors, NPE, help visibility, auto-complete, click-to-copy, file path rename
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-11 21:36:11 +08:00
copilot-swe-agent[bot]
04874111ed fix: skip OP sync for profiles not in cache instead of using empty username
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-11 21:36:11 +08:00
copilot-swe-agent[bot]
461bbe8d39 feat: implement per-server OP level resolution and sync_op_level_to_minecraft
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-11 21:36:11 +08:00
copilot-swe-agent[bot]
95095b3c32 fix: rename links path, improve messages, fix help visibility, remove unnecessary messages
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-11 21:36:11 +08:00
copilot-swe-agent[bot]
e578e43ce4 refactor: rename and reorganize linking packets, fix OP resolution, improve logs and file path
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-11 21:36:11 +08:00
copilot-swe-agent[bot]
2a6394805b fix: address code review feedback - fix indexed placeholders in translations, improve null handling
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-11 21:36:11 +08:00
copilot-swe-agent[bot]
bde4900e98 feat: implement account linking system with LinkedAccountManager, VerificationCodeManager, network packets, commands (link/unlink/links), Discord and Minecraft integration
Co-authored-by: Xujiayao <58985541+Xujiayao@users.noreply.github.com>
2026-03-11 21:36:11 +08:00
Xujiayao
ef7f8f299b Enhance console command's command param suggestion logic for improved user experience 2026-02-26 18:32:06 +08:00
Xujiayao
acbdb377c0 Fix console command suggestions 2026-02-26 16:32:19 +08:00
Xujiayao
4cfb470919 Fix i18n 2026-02-26 14:23:04 +08:00
Xujiayao
f1ee8b59e2 Implement callback-based completion for Minecraft command execution and enhance timeout handling 2026-02-26 14:13:19 +08:00
Xujiayao
a843cce0b3 Implement OP level handling for command execution and auto-completion, and Console & Whitelist commands 2 2026-02-26 12:32:24 +08:00
Xujiayao
8380fb962b Implement OP level handling for command execution and auto-completion, and Console & Whitelist commands 1 2026-02-26 12:07:29 +08:00
Xujiayao
7b72e8f088 Update command permission levels to -1 2026-02-25 23:02:54 +08:00
Xujiayao
a6cbe16655 Refactor packet imports and reorganize packet structure for better clarity 2026-02-24 23:07:05 +08:00
Xujiayao
6978a4ab8b Implement stats command for viewing Minecraft statistics 2026-02-22 19:07:15 +08:00
Xujiayao
fbd0c6f888 Add visibility control for commands in help listings based on sender type 2026-02-19 17:39:13 +08:00
Xujiayao
9db51ee883 Fix TPS and MSPT 2026-02-03 02:14:47 +08:00
Xujiayao
cbb1d04139 添加连接延迟信息到服务器信息响应 2026-02-03 02:04:03 +08:00
Xujiayao
7b09c308f8 添加信息命令和状态信息功能 2026-02-02 23:37:40 +08:00
Xujiayao
f18d2867fc Add Minecraft translation messages and improve logging for translation processes 2026-02-01 23:19:36 +08:00
Xujiayao
fadf476d36 Initialize TranslationManager with server instance on server start and handle initialization errors 2026-02-01 18:59:01 +08:00
Xujiayao
cdb011e964 Update player join message and refactor JSON utility to use YAML_MAPPER 2026-02-01 18:23:59 +08:00
Xujiayao
9c8626f904 Refactor translation handling in MinecraftEventHandler and add Component support in TranslationManager 2026-02-01 18:05:22 +08:00
Xujiayao
c6a7dfe64a Add server instance to TranslationManager and update event handling 2026-02-01 15:34:57 +08:00
Xujiayao
a47b1bd8d0 Refactor resource loading and logging in TranslationManager and MixinReloadableServerResources 2026-02-01 12:40:26 +08:00
Xujiayao
07285b6d8a Refactor TranslationManager package 2026-01-31 23:18:20 +08:00
Xujiayao
c964552da1 Add support for resource reloading event to refresh translations 2026-01-31 23:16:56 +08:00
Xujiayao
24f559feab Refactor translation handling to utilize JsonUtils for JSON parsing 2026-01-31 15:15:35 +08:00
Xujiayao
fe802ef607 Refactor translation loading to use HttpUtils for HTTP requests 2026-01-31 14:26:13 +08:00