CopyBooks
CopyBooks - Copy written books
CopyBooks was made out of a plugin request. It supports/will support saving books for later restroring, replacing text in a book, copy only pages into another book, unsigning books, unlimited access for a specific book from signs, selling/buying books, getting books based on the permissions group when you spawn. All is already done except the buying selling, copy pages and replacing. But it will be no big deal. This plugin is in pre-alpha and not tested. The source is available on github so feel free to push pull requests. At the moment I have to hook the net.minecraft code directly, because the api is not yet implementd in bukkit. This means it only runns on CraftBukkit.
Features:
- Save books
- Restore books
- Getting books when a player spawns
- Getting books through signs
- Setting up commands for books
- Selling/buying books
Upcoming features:
- Format pages like center
- Replace text in books
- Copy only specific pages
- Convert text files to books (maybe even word documents :P)
- Dispense books from dispensers :P
Installation
You have to compile it at the moment yourself because its in pre-alpha. But it's easy if you have some basic knowenledge about git and maven. First clone the repo with git clone [path] and do then mvn clean install. This depends on a working git and maven installation.
Configuration
It is almost self explaining. The 2 settings you can do atm in the config is the group based book spawn when a player joins and the command based books. A better explanation will follow here :P
Commands
- /cb copy- Copies the book you are holding
- /cb create [id] - Creates a book from an id
- /cb list - Lists all copied books
- /cb unsign - Unsigns a book
Sign-Syntax
Unlimited book sign:
[CopyBooks]
id
Sell/Buy sign:
[Seller]
[Seller if the name is longer than 15]
Id:Amount
Price
Example:
p000ison
[A super cool story]
3:1
6.3
Additional info
To-Do
Setup jenkins- Fixing bugs for daus
- Fixing small bugs
- Add upcoming features
@Naantam
hmm, sry im currently busy with an other plugin, but if you want, you can check if it works and post a link here. (https://github.com/p000ison/CopyBooks) sry can not handle more atm and I don't feel like programming atm so much :(
Please release this plugin for 1.4.2. We've been patient and really wanting the plugin. If you do not want to mess with it any further, can you please send it to someone (or myself) who can try to keep it up to date with CB. It would be appreciated. Thank you.
please release this...
@Faffling94
hmm im done, but im too lazy to release it :P
Looks great! Looking forward this plugin. Good luck!
@ZeroAme
sry for the delay, Im done except a few lines, but im busy atm. Fist you need to copy a book. Then lookup with /cb list the id of the book then write on the sign in the first line [CopyBooks] and in the second the id.
the [CopyBooks] sign doesn't give you a book.
The plugin doesnt seem to be working or me evey command I imput such as /cb copy makes it say "Command not found"
So finished: http://jenkins.thebigdigmc.info/job/CopyBooks/11/
Description (maybe) will follow tomorrow :P
When is it going to be open to everyone compiled, I'm hoping to get it for my server very soon.
@p000ison
I mean, the name of the sign is useless. I could put "USADrools" in line 2 and it be selling a book called "U.S.A. Rocks". But yea, I found that SCS works for books, but for some reason servers keep erasing books randomly. It's driving me crazy. Every time I write a book, I gotta do it outside the game so I can import it over and over again. I even had my friend develop a book importer exe file.
@ZeroAme
yep
Hey p000ison, can you make it a feature so if a player types the command /rules & there is a book assigned the id of rules, that book is given to the player that typed /rules?
@p000ison
Awesome can't wait!
btw I think i finished it :P Ill test it tomorrow and release it then.
@ZeroAme
Is it possible to add custom bbcode? :P The bukkit plugin side would be no problem, but I know not much about php. So sry not sure about this :D
@p000ison
Not sure how much you know about forum coding and such, but would it be possible to make it so if the books are stored in the same MYsql database as my forums are stored in, to have a forum plugin so players could write and store books from the forums onto the database? Like have some custom bbcode like
[book] [title]Example Book Title[/title] [pages]Example Text for pages[/pages] [Author]UserName[/author] [/book]
or something like that?
I just think that would be really awesome. And not nessarily anything you would need to do or anything, I am just curious if its possible to do.
Very nice :D
Btw i can't seem to get /cb list to work. It just says: no books found!
Trying to get a bookshop going, but its hard when you dont know the id.
@snipern
Sure. Only with Vault :P
@Prang123
Yeah we will see. Next week im again at home, so I can finish this :P It's not much to do, but I have to maaany ideas :P
Does this works with Vault? :D