BookCopier
Book copier is a simple Minecraft plugin for Bukkit API, completely open-sourced. You can browse, download and integrate my code to your project, just mention my name.
Features
With BookCopier is administration of writable books much easier! You can copy or send books to target user. The best feature of the plugin is ability to save and then load books to file. These files are transferable between servers running this plugin. It's also great if you want to make a backup of your books.
How to save book to file
It's simpe. Only type /bc save when you're holding writable book. File with backup will be saved to plugins/BookCopier/fileName.book
How to load book from file
Type /bc load . File named "fileName" must be in directory plugins/BookCopier.
Upcoming features
"First login book" - When player joins server for first time, plugin gives him book what you specified in file automatically!
Commands
- /bc help - Shows commands and info about plugin.
- /bc copy [value] - Copies book in your hand.
- /bc give <player> [value] - Gives book in your hand target player.
- /bc load <fileName> - Loads book from file to your inventory.
- /bc save <fileName> - Saves book in your hand to file.
What are the permission nodes?
@ThePwnzaWabbit
Updated! Waiting for approval.
You should update this plugin :(
Bummer.
Super plugin :D
Very good plugin, although save and load doesn't seem to work :/
Sorry man. I wrote this part of plugin at night and I was really tired. I have same bug here. Thank you very much for your comment. Tomorow it will be fixed ;)
BookCopier 1.1 seemed to load find in CB 1.3.1-R2.0 without any console errors. The /bc help command also worked. The /bc save command also appears to have created a text file with the text, however, it is unable to load it back in. It says "Bad format of target file!"
I tried several different saves, some with one line of text only on one page, some with multiple pages. No matter what I tried, the saved version of the book could not be loaded.
I figured it might be an issue with the save function in 1.3.1 so I created a new CB 1.3.2-R0.1 server, installed only this plugin and hooked up to it with a fresh copy of Minecraft 1.3.2. I was not able to load any of the previously saved books so I tried creating some new ones, save them and immediately tried to load them but got the same format error.
Here are a few samples of what was saved in CB 1.3.2:
This is a book with 3 pages. Page 1 has 3 lines, page 2 has 1 line, page 3 has one line.
Another 3-page book:
Single-page book:
Thanks, LHammonds
Thanks for making this. I was starting to wonder how I could go about creating rule books and plugin info books...and then share them across multiple bukkit servers. This looks like it will do the trick!
My servers are currently running 1.3.1-R2.0 so I'll test with that version...if it won't work, I'll have the mod ready to install once we move to a RB of 1.3.2.
Thanks, LHammonds