BookShop
Players can publish their written books in a shop, so other players can buy the written books. There are two ways of creating a BookShop:
- When the player holds a book and quill item while hitting the sign, the text in the book is copied.
- When the player places some books in the chest beneath the sign, the plugin will duplicate the item in the chest every time it is sold. Thus nobody has to write books more than once.
Please note:
- AdminShops always duplicate the book!
It works the same way than a publisher: It copies the book in the chest and sells it to the player.
Features
- Publication of written books
- backup of books into a file
- Restoring books
- Give a default book to every new player
- Give a book to every player who joined the server before.
- Give a book to a player
- Statistics for every book (how often it was sold)
- Admins can impose taxes.
- Player can only publish written books.
- Admins can create AdminShops that always duplicate the book regardless of the settings in the config file.
Dependencies
- iConomy 5 or iConomy6 or Vault or Register
- PermissionsEX or bPermissions or GroupManager or BukkitPermissions
The shop
To create a shop, you have to place an empty chest first. Then you can create a sign with following content
Please note: Only ONE book per shop is allowed!
Line | Text |
---|---|
1 | [BookShop] |
2 | |
3 | The books name (automatically added after closing the chest with the book), but you can let it empty ;) |
4 | price of the book |
OR:
Line | Text |
---|---|
1 | [BookShop] |
2 | |
3 | The books name (automatically added after closing the chest with the book), but you can let it empty ;) |
4 | price of the book:price of the book if the player has a book and quill in the hand |
To create an AdminShop:
Line | Text |
---|---|
1 | [BookShop] |
2 | AdminShop |
3 | The books name (automatically added after closing the chest with the book), but you can let it empty ;) |
4 | price of the book |
To create a Newspaper shop:
Line | Text |
---|---|
1 | [BookShop] |
2 | Newspapers |
3 | The books name (automatically added after closing the chest with the book), but you can let it empty ;) |
4 | price of the newspapers |
With the newspaper shop you are able to sell several books at a time. E.g. a book with rules and a book with a plugin info. If the player hits the sign he receives the two books.
If you don't like the keywords on the sign, you can edit them in the Shopconfig.yml´file!
At the end it should look like this:
Permission nodes
Action | Permission node |
---|---|
Create a shop | BookShop.create |
Create a shop of an other player | BookShop.create.other |
Sell books of other players | BookShop.sell.other |
Create a Adminshop | BookShop.create.admin |
Use the shop | BookShop.use |
Destroy own shop | BookShop.create |
Destroy shop of someone else or AdminShop | BookShop.create.admin |
Message to admins that someone created a shop | BookShop.admin |
Command | Permission node | Explanation |
---|---|---|
/BookShop setwelcomebook | BookShop.setwelcomebook | Sets a book which has every new player in the inventory |
/BookShop removewelcomebook | BookShop.removewelcomebook | Unsets a book which has every new player in the inventory |
/BookShop giveall | BookShop.giveall | Gives a book to every player who joined the server before |
/BookShop give | BookShop.give | Gives a book to a player |
/BookShop backupbook | BookShop.backupbook | Backups a book |
/BookShop loadbook | BookShop.loadbook | Loads a book |
/BookShop reload | BookShop.reload | Reloads the plugin |
/BookShop debugfile | BookShop.debugfile | Turn the debugfile on and off |
/BookShop internet | BookShop.internet | Turns the internet access on and off |
/BookShop version | BookShop.version | Shows the current version of BookShop |
/BookShop update | BookShop.admin | Updates the plugin to the latest vesrsion on dev.bukkit.org |
/BookShop deletedebug | BookShop.admin | Deletes the debugfile to give you free space on the hdd |
/BookShop log | BookShop.admin | Returns the current size of the debugfile |
/BookShop toggle | BookShop.admin | Turns BookShop immediately off |
/BookShop language <language> | BookShop.admin | Select the ingame language (by default english) |
/BookShop help | BookShop.help | Returns all command which the player can execute |
/BookShop showdebug | BookShop.showdebug | Shows you console messages ingame |
Works in 1.8!
@ThePwnzaWabbit
BookShop wants to create files on your HDD, so it need a bit of free memory and the permission to change the content on your HDD. Some systems deny this permission. Did you get an error on shutdown, too? Do you use the current version of BookShop? Can you tell me wheather two files exist in the folder /plugins/BookShop/metrics ?
What does that mean? How do I do that?
Sorry I'm a bit clueless.
@ThePwnzaWabbit
Hm, is the plugin allowed to write to disk?
It says whenever I start up my server:
[SEVERE] [BookShop] WARNING: Cannot save Shop statistics! [SEVERE] [BookShop] WARNING: Cannot save AdminShop statistics!
How do I fix this?
@ThePwnzaWabbit
No, that's not possible.
Can the price of the book be in iron?
@LindseyMH
Its good to know that you like my plugin. Your suggestion sounds good, but it needs time to andministrate this library, and approve that there are no bad books in threre. Iam sorry, but I haven't got as much time than I want to have. At the moment I can't realize your suggestion :(
I just want to say that I love your plugin and thank you very much for taking the time to make it. I have a suggestion. Could you maybe add a place on this site for people to share books? With some servers having libraries or quests it might be helpful. Also, it might increase the popularity of your plugin. Once again great plugin and thank you.
Please Update!!! BUG
> http://pastebin.com/U2zgvtzq@GreenGrizzlyBear
Old version should work with 1.6.2, too. But bugfix is in progress.
update in progress for 1.6.2?
@Weirdo1984
That's what I see: http://www.youtube.com/watch?v=mvdW7uXca4I Please paste the log, or do /BookShop report Comment#209 Thanks.
@adenslayer
Bug fixed in the next update. Thanks for your patience.
When i try to create a bookshop for other users in our library, the plug-in doesn't add the title of the book to the sign. And when i buy a book, the one who receives the money gets a notice that he bought his own book.
This is what i see: This is what he sees:
@adenslayer
I think you're running JRE 6. If you are, switch to JRE 7.
@adenslayer
Has Bukkit enough rights to write to disk? You can try to delete this files in the plugin folder.
I keep getting an error saying Cannot save Shop stats. and the same message about adminshop stats. Is there anyway that I can just disable this feature as I don't even want to use it? http://cl.ly/OztO
@DrinQ
Today I broke my had about how to add the trapped chest feature, but I have no idea. The trapped chests API of Bukkit seems missing, or I didn't find it, so in near future I can't implement this feature. I'm sorry.
@ibhh
1: Awesome, glad to hear it.
2: Ok, fair enough. I hope you'll reimplement it since it was rather useful. (Maybe add the book summaries, that I suggested some months back, at the same time?)