BookPrinter ?
BookPrinter 是一款专为 Paper/Folia 服务器(1.20.1+)优化的高性能插件,旨在快速将 .txt 文件转换为游戏内已书写的书籍。它采用异步 NIO.2 文件处理技术,确保不会造成主线程卡顿,并包含多层路径安全检查以防止未授权访问。
查看详细信息
✨ 主要特性
-
像素级自动分页(新增)
Minecraft 书籍页面正好容纳 114 像素 × 14 行——超出部分会被静默截断。BookPrinter 现在使用原版字体的真实字符宽度(窄体 i/l/标点符号,宽体 M/W,全角中日韩字符,加粗 +1px)来测量文本,像客户端一样精确换行,并将每页填满至其真实上限。不再出现页面底部内容缺失的问题——无论你的文本是英文、中文还是混合文本,无论是否带有颜色、加粗或渐变效果。
-
双解析模式
推荐的 Modern Mode(现代模式) 支持 RGB 渐变、Hex 颜色以及通过 MiniMessage 实现的所有现代文本格式,同时保持与传统 & 颜色代码的向后兼容性——并且现在会自动对长段落进行分页,而不是让它们溢出。Classic Mode(经典模式) 保留了所有四种分页策略(smart / lines / hard / marker),现在由相同的像素引擎提供支持,旧版基于字符计数的模式仍可通过配置文件启用。
-
跨行保留颜色
Hex 颜色、渐变、加粗、斜体、下划线和乱码文本在换行或分页时均完全保留——不再出现页面中间格式丢失的情况。
-
灵活的支付选项
支持通过货币(Vault)或经验值(等级/点数)进行支付,易于配置。
-
内置多语言支持
自带中文和英文语言文件,并可添加自定义语言。
-
便捷命令
/bp info/print/reload/gui/buy
-
自动标题格式化
智能地将文件名转换为书籍标题(例如 my_story.txt → My Story)。
只需将文本文件放入插件的数据文件夹,即可在游戏中生成格式丰富的书籍——这是公告、任务或发布故事的理想工具。
? 兼容性
|
|
| 服务端软件 |
Paper、Folia 及 Paper 分支(Purpur、Pufferfish…) |
| Minecraft 版本 |
1.20.1 – 1.21.x(单个 jar 包) |
| Java 版本 |
17 或更高 |
| 依赖项 |
仅在使用货币支付时需要 Vault(可选) |
⚠️ 注意:书籍页数可能比以前更多——这是预期行为。以前,超出页面物理容量的内容会被静默丢弃;现在这些内容会流动到额外的页面上。
BookPrinter ?
BookPrinter is a high-performance plugin optimized for Paper/Folia servers (1.20.1+), designed to quickly convert .txt files into in-game written books. It utilizes asynchronous NIO.2 file processing to ensure no main-thread lag and includes multiple layers of path security checks to prevent unauthorized access.
See detailed information
✨ Key Features
-
Pixel-Perfect Auto Pagination (New)
Minecraft book pages hold exactly 114 pixels × 14 lines — anything beyond is silently cut off. BookPrinter now measures text with the vanilla font's real character widths (narrow i/l/punctuation, wide M/W, full-width CJK, bold +1px), wraps lines exactly like the client does, and fills each page to its true limit. No more missing content at the bottom of pages — whether your text is English, Chinese, or mixed, with colors, bold, or gradients.
-
Dual Parsing Modes
The recommended Modern Mode supports RGB gradients, Hex colors, and all modern text formatting via MiniMessage, while maintaining backward compatibility with traditional & color codes — and now auto-paginates long sections instead of letting them overflow. Classic Mode keeps all four page-splitting strategies (smart / lines / hard / marker), now backed by the same pixel engine, with the legacy character-count mode still available via config.
-
Colors That Survive Line Breaks
Hex colors, gradients, bold, italic, underline and obfuscated text are fully preserved when lines wrap or pages split — no more losing formatting mid-page.
-
Flexible Payment Options
Supports payments via money (Vault) or experience (levels/points), easily configurable.
-
Built-in Multi-language Support
Comes with Chinese and English language files, with the ability to add custom languages.
-
Convenient Commands
/bp info/print/reload/gui/buy
-
Automatic Title Formatting
Intelligently converts filenames into book titles (e.g., my_story.txt → My Story).
Simply place your text files into the plugin's data folder to generate richly formatted books in-game—an ideal tool for announcements, quests, or publishing stories.
? Compatibility
|
|
| Server Software |
Paper, Folia, and Paper forks (Purpur, Pufferfish…) |
| Minecraft Versions |
1.20.1 – 1.21.x (single jar) |
| Java |
17 or newer |
| Dependencies |
Vault only for money payments (optional) |
⚠️ Note: Books may have more pages than before — this is expected. Previously, content that exceeded a page's physical size was silently discarded; it now flows onto additional pages instead.
评论 0
登录后参与评分
还没有评论,来抢沙发吧