
BookPrinter
BookPrinter — A modern lightweight book generation plugin
Описание
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.
✨ 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 (narrowi/l/punctuation, wideM/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.