This plugin generates Minecraft books from text files on your server.
Your can use it to create rule books for your server that your players can obtain, or whatever else warps your starship. You create one or more text files in your Minecraft folder similar to:
book(bookname).txt
Where bookname can be any name, but cannot contain spaces (not even on systems that allow filenames to contain spaces) because the player has to be able to type the book name as a single word to the /BOOK command. If you name a book file
book(my story).txt the player will type /BOOK MY STORY and the plugin will try to load
book(my).txt, so don't put spaces in filenames!
Your players can type /BOOK BOOKNAME to load any book into their inventory. The book command is not case sensitive, so they can type /book bookname or /BOOK BOOKNAME or /BoOk BoOkNaMe to get the book.
If a player types just /BOOK it will list all available books; that is, all files that follow the standard:
book(*).txt. And if no books exist, the plugin will create an example book for you to edit.
The book file is just a text file that you can edit with Notepad. Do not use a word processor like MS Word or Wordpad! The book file must be a pure text file.
A book file looks like this:
Code (Text):
^T Book Title
^A Author Name
^C Chapter Title
^P Paragraph
^P Another paragraph
^P Yet another paragraph
^C Another Chapter Title
^P Paragraph
^P Another paragraph
^P Yet another paragraph
^B A line break
The book title is the title of the book in Minecraft. The plugin will create a "title page" for your book containing the title, author, and date, just like a real book. Each chapter title forces a new page. If a chapter exceeds the page, it will start a new page automagically. Each paragraph forces a blank line and starts on a new line.
You can insert funky characters using the percent % symbol like
this: %25 or %5E. This is how you could type a % or a ^ into the text of your book.
If you want to add features and fix bugs, go ahead. I included the Java source for just that reason.