v1.3.0
Game room system with core restrictions, wand selection tool, room management commands, bossbar/text mode adaptation, and documentation alignment.
中文更新日志:
- 棋牌室系统(核心限制): 新增
GameRoom领域模型、GameRoomManager管理器、GameRoomListener监听器和 YAML 持久化。当gameRooms.enabled=true且gameRooms.restrictNewTables=true时,牌桌只能在棋牌室内创建;玩家进出棋牌室有提醒消息;对局中玩家离开棋牌室后启动倒计时,超时强制结束对局。 - 魔棒选区工具: 新增
GameRoomWandListener,使用烈焰棒(Blaze Rod)作为魔棒,左键点击方块设置选区第一点,右键设置第二点,通过 PersistentDataContainer 标识魔棒物品。 - 棋牌室管理命令: 新增
/mahjong room命令(别名gameroom),支持wand(获取魔棒)、create(创建棋牌室)、delete(删除棋牌室)、list(列出棋牌室)、info(查看详情)五个子操作。create优先使用魔棒选区,无选区时以玩家位置为中心按配置半径创建。 - 倒计时警告节奏: 前段每 15 秒提醒,最后 10 秒按 10/8/6/5/4/3/2/1 逐秒倒计时。玩家返回棋牌室则取消倒计时。
- Bossbar/桌上文字模式适配: Bossbar 和桌上中心文字根据游戏模式(RIICHI/GB/SICHUAN)显示不同内容,不再统一显示日麻特有的供托/宝牌。
- 配置模板补全: 默认配置模板新增
gameRooms配置段,包含 enabled、restrictNewTables、enterExitMessages、leaveCountdownSeconds、defaultRadius、defaultHeight、file 七个配置项。 - 文档矫正: README、wiki 和 CHANGELOG 与代码实际行为对齐,包括 botmatch 命令支持 GB/SICHUAN 预设、棋牌室系统说明等。
English Release Notes:
- Game room system (core restrictions): Added
GameRoomdomain model,GameRoomManager,GameRoomListener, and YAML persistence. WhengameRooms.enabled=trueandgameRooms.restrictNewTables=true, tables can only be created inside game rooms; enter/exit messages are shown; active players who leave a game room trigger a countdown that force-ends the match on expiry. - Wand selection tool: Added
GameRoomWandListenerusing Blaze Rod as the wand. Left-click sets the first corner, right-click sets the second corner. Wand items are identified via PersistentDataContainer. - Game room management commands: Added
/mahjong roomcommand (aliasgameroom) with five sub-operations:wand(get wand),create(create room),delete(delete room),list(list rooms),info(room details).createuses the wand selection if available, falling back to player position with configured radius. - Countdown warning cadence: Early phase warns every 15 seconds; final 10 seconds count down at 10, 8, 6, 5, 4, 3, 2, 1. Returning to the room cancels the countdown.
- Bossbar/table text mode adaptation: Bossbar and center table text now display mode-appropriate content (RIICHI/GB/SICHUAN) instead of always showing riichi-specific indicators.
- Config template completion: Default config template now includes the
gameRoomssection with enabled, restrictNewTables, enterExitMessages, leaveCountdownSeconds, defaultRadius, defaultHeight, and file settings. - Documentation alignment: README, wiki, and CHANGELOG corrected to match actual code behavior, including botmatch supporting GB/SICHUAN presets and game room system documentation.