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 |
@Wonkee
May I should write: iConomy 5 or iConomy6 or Vault or Register
Why use iconomy as a dependency if you're using Vault also? Couldn't you just use Vault with ANY economy plugin?
Is this plugin compatible with Java 7?
i ran the update and it wiped out the config, so i cleared it downloaded the latest and ran again. it creates the folder but writes an empty config then fails to load. This is now on with 1.9
Could you add boseconomy? iconomy is an inactive plugin now so i wont use it, when i tried using it with boseconomy it just came up with null null it did this when i typed in any command too
@Jarhielt
You needent do anything on update except copying the jar-file. What do you do?
each time i upgrade this, it wipes out my config. bookshop 1.6 doesn't even create a config when i've cleared out the previous versions. what could be causing it
@FordRacer2007
It say: Your username is too long.
No there is now way to create a shop with a username that is longer than 15 chars. :(
What happens when a player's name is too long? For example, I have a player named "acetrainernathan", his name won't fit in one line. Will typing most of it still work?
Hi, I downloaded the 1.7 version which said it fixed a permission issue, not sure which permission issue but when I log on with 1.7 i get 4000 lines of errors in about 30 seconds.
I reverted back to 1.6 which does not have this error. I have pasted a small portion of the log for your perusal.
@Daphonic
I don't have any ideas why it should be caused by BookShop. I heard that a wrong permissions.yml can cause this error.
See: http://lmgtfy.com/?q=%5BWARNING%5D+%5BPermissionsEx%5D+Can%27t+obtain+PermissionsEx+instance
2012-08-18 21:38:09 [WARNING] [PermissionsEx] Can't obtain PermissionsEx instance 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Reinjecting all permissibles 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Can't obtain PermissionsEx instance 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Reinjecting all permissibles 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Can't obtain PermissionsEx instance 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Reinjecting all permissibles 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Can't obtain PermissionsEx instance 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Reinjecting all permissibles 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Can't obtain PermissionsEx instance 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Reinjecting all permissibles 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Can't obtain PermissionsEx instance 2012-08-18 21:38:09 [WARNING] [PermissionsEx] Reinjecting all permissibles
I get this when ever this plugin is installed, then if i try to give anyone else new Permissions, it crashes hardcore. any thoughts?
@mooseintree
It should work, why not?
@beimeith
Its possible, but it is much work. The plugin would need a database, but it should run without. I am going to implement this if this feature is wished a couple of times.
Hope the config.yml can add support to more characters & UTF-8 form
I think this is great, but I am curious, can you make it work with more than chests? There are several plugins to make bookshelves store books, I would love to be able to use them instead of a chest.
I am assuming this won't work with BOSEconomy? Also running vault.
I don't have a big server beyond me and a friend questing together, so this plugin does me no good.
I just wanted to let you know that I think this is an AWESOME idea. I love the thought of bookshops, and the idea of selling original works. Any thoughts or plans of having interaction with bookshelves? :D
Anyhow, KUDOS. If I had a server with lots of peoples, I'd definitely use this.
@BlockTilt
Its a realy good idea, so I implemented this in BookShopversion1.4.
It works now like this:
Do you like this?
@Scripthen
What do you mean? BookShopversion1.4 is in the plugin.yml version 1.4.