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 |
Hi @ibhh
I use the welcome book feature. It was working perfectly on 3.7, but since last version (with cb1.4.5-R1.0), every new player get an ironpickaxe instead of the welcome book! And the bug is huge since the common iron pick axe is not usable anymore on the server (on breaking block, the block reappear instantly). The iron pickaxe acting weird also, a right click get the ironpickaxe to be fully repaired.
Thx for your plugin, it is awesome!
merry christmas later,
I get this error when i put your plugin the first time in the pluginfolder, but it seems still to work! Maybe a wrong message?
-Craftbukkit 1.4.6 R.0.1 and the latest version of bookshop 3.8-
2012-12-28 14:47:29 [INFO] [BookShop] Enabling BookShop v3.8 &n
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: *****
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: Because of some Bukkitchanges
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: you have to update the plugin
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: manually.
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: This plugin needs a update every
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: MC-Update!!!!
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: *****
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: Your Bukkit version: 1.4.6-R0.1
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: This plugin is compatible to this bukkit-version
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: Cannot load Shop statistics!
2012-12-28 14:47:29 [SEVERE] [BookShop] WARNING: Cannot load AdminShop statistics!
@FordRacer2007
Seems to be a bug, I ll fix it tomorrow.
I updated to the latest version, and none of my book chests worked, so I re-did them, I placed a chest, put a sign with [BookShop], Newspapers, -, 5 and it said it was created successfully. I put the books inside but nothing happens and I get no response when I left click the sign. This was working before the 1.4.6 update for my btw.
@Robert107
I am going to take a look at your problem (this problem occures to often, but I haven't got any problem while I was testing it)
@ibhh
No problem. Thanks for updating!
Also, when buying a book i get this:
16:57:20 [INFO] [BookShop] Sending issue report to ibhh.de!
16:57:20 [INFO] [BookShop]
-----16:57:20 [INFO] [BookShop] Version: 3.8
16:57:20 [INFO] [BookShop] ErrorID: 3337
16:57:20 [INFO] [BookShop] Gameversion: 1.4.6-R0.2-SNAPSHOT
16:57:20 [INFO] [BookShop] Other: Error BookShopSignLinks
16:57:20 [INFO] [BookShop] Message: none
16:57:20 [INFO] [BookShop] Class: SignHandler
16:57:20 [INFO] [BookShop]
-----16:57:20 [INFO] [BookShop] Message of Server: Sucessfully reported issue:367
16:57:20 [INFO] [BookShop]
-----@TheCanadianLizard
The money user spend to the adminshop disappers, but money spend to an normal shop is paid to the owner.
@Slaand
Yes, why not? My opinion is that my time is to smal to implement this feature. Also there must be a database, which I want to avoid because it can make trouble if the plugin runs not every time on the server.
All shops need a chest?
@BlockyDigital
http://ibhh.de/BookShop.jar
@ibhh
Where can I get 3.8? Like a link or Dropbox... something
@tinezr
@Robert107
BookShop 3.8 supports 1.4.5-R1.0 and all 1.4.6 builds. Upload is waiting on approvial.
@Robert107
Thanks. Now I can work on solving this issue.
@ibhh
Yes you can... you should change the way it does only...
i found this googling a little:
net.minecraft.server.v1_4_6.ItemStack nis = CraftItemStack.asNMSCopy(itemStack);
tag = nis.tag;
@tinezr
Thats true, my plugin cant read book content at the moment, so exceptions would occure.
If Bukkit does NOT revert some changes, this plugin is BROKEN. :(
Hello,
You may know it already but the latest version 3.7 does not work with the latest CraftBukkit Recommended Build (1.4.5-R1.0). It deactivate itself saying the version of craftbukkit mismatch.
:)
This is a REALLY cool plugin, but what is the diference between an Adminshop and a regular Bookshop?
@MikeOver757
It is possible, but I haven't got enough time to implement this feature at the moment. I'm sorry.
@Maniaclese
Thanks for your idea. I will add it soon.
Could you perhaps implement a way to hide the signs and when you just simply right click the chest it gives you a book? Because i'm soon going to run a Medieval/Fantasy MMORPG server and i don't particuly want all these signs where you can buy books maybe so like you can put the sign on a block and the chest goes behind that block or under the block the chest is on? Do you know what i mean?
It's a great plugin but for my server i don't think it'll do well having a shop layout like that.
Great idea though!