A simple plugin to share custom books with your players directly from the config file.
Features:
Define books in config.yml with titles, authors, and pages.
Players can open these books using a command.
Supports MiniMessage formatting for colors and styles.
You can link the /books open <bookName> command to a block, NPC, or alias for easy access.
Commands:
/books open <bookName> - Opens a book.
/books list - Shows all available books.
/books reload - Reloads the config file.
Permissions:
books.read.<bookName> - Allows reading a specific book.
books.read.* - Allows reading all books.
books.list - Allows listing all books.
books.reload - Allows reloading the config.
Setup:
Install the Plugin:
Place the plugin JAR into your plugins folder.
Restart your server.
Add Your Books:
Define your books in the config.yml under the books: section.
Example:
books: WelcomeBook: title: "<gold>Welcome to the Server</gold>" author: "<yellow>Server Admin</yellow>" pages: - "<bold>Welcome!</bold>\nWe're glad you're here." - "Check out the rules and enjoy your stay!"
Reload the Config (if the server is running):
Use /books reload in-game or from the console.
Tip: Link the book command to a block or NPC using other plugins to make it easily accessible to players.