BookShop

BookShop_logo

Stats

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:

  1. When the player holds a book and quill item while hitting the sign, the text in the book is copied.
  2. 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!

LineText
1[BookShop]
2
3The books name (automatically added after closing the chest with the book), but you can let it empty ;)
4price of the book

OR:

LineText
1[BookShop]
2
3The books name (automatically added after closing the chest with the book), but you can let it empty ;)
4price of the book:price of the book if the player has a book and quill in the hand

To create an AdminShop:

LineText
1[BookShop]
2AdminShop
3The books name (automatically added after closing the chest with the book), but you can let it empty ;)
4price of the book

To create a Newspaper shop:

LineText
1[BookShop]
2Newspapers
3The books name (automatically added after closing the chest with the book), but you can let it empty ;)
4price 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:

BookShop


Permission nodes

ActionPermission node
Create a shopBookShop.create
Create a shop of an other playerBookShop.create.other
Sell books of other playersBookShop.sell.other
Create a AdminshopBookShop.create.admin
Use the shopBookShop.use
Destroy own shopBookShop.create
Destroy shop of someone else or AdminShopBookShop.create.admin
Message to admins that someone created a shopBookShop.admin
CommandPermission nodeExplanation
/BookShop setwelcomebookBookShop.setwelcomebookSets a book which has every new player in the inventory
/BookShop removewelcomebookBookShop.removewelcomebookUnsets a book which has every new player in the inventory
/BookShop giveallBookShop.giveallGives a book to every player who joined the server before
/BookShop giveBookShop.giveGives a book to a player
/BookShop backupbookBookShop.backupbookBackups a book
/BookShop loadbookBookShop.loadbookLoads a book
/BookShop reloadBookShop.reloadReloads the plugin
/BookShop debugfileBookShop.debugfileTurn the debugfile on and off
/BookShop internetBookShop.internetTurns the internet access on and off
/BookShop versionBookShop.versionShows the current version of BookShop
/BookShop updateBookShop.adminUpdates the plugin to the latest vesrsion on dev.bukkit.org
/BookShop deletedebugBookShop.adminDeletes the debugfile to give you free space on the hdd
/BookShop logBookShop.adminReturns the current size of the debugfile
/BookShop toggleBookShop.adminTurns BookShop immediately off
/BookShop language <language>BookShop.adminSelect the ingame language (by default english)
/BookShop helpBookShop.helpReturns all command which the player can execute
/BookShop showdebugBookShop.showdebugShows you console messages ingame

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of adenslayer adenslayer May 16, 2013 at 06:21 UTC - 0 likes

    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

  • Avatar of ibhh ibhh May 15, 2013 at 20:00 UTC - 0 likes

    @DrinQ: Go

    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.

    xpShop

  • Avatar of DrinQ DrinQ May 15, 2013 at 16:48 UTC - 0 likes

    @ibhh: Go

    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?)

  • Avatar of ibhh ibhh May 15, 2013 at 11:30 UTC - 0 likes

    @DrinQ: Go

    Answer to your first question: Thanks for the screen shot, so I get your point. I will implement this feature in an upcoming update.

    Answer to your second question: I removed that feature because I removed all Craftbukkit methods, so I had to change the storage system of the books. If I have enough time to reimplement this feature, it will be back soon.

  • Avatar of DrinQ DrinQ May 15, 2013 at 09:57 UTC - 0 likes

    Ok, I have another question:
    Why did you remove the "selled" statistic from when you sneak click the sign?
    (Also; it should be "sold")

  • Avatar of DrinQ DrinQ May 11, 2013 at 12:38 UTC - 0 likes

    @ibhh: Go

    It would be possible to fit in twice the amount of bookshops in the same space, since you could then alternate between trapped and regular chests.
    Like this: https://www.dropbox.com/s/suhcn4fv6uu1zvr/bookshop.png

    Last edited May 11, 2013 by DrinQ
  • Avatar of ibhh ibhh May 11, 2013 at 11:43 UTC - 0 likes

    @DrinQ: Go

    Why should I do? What's special about trapped chests?

  • Avatar of DrinQ DrinQ May 11, 2013 at 11:24 UTC - 0 likes

    Are you working on making this work for trapped chests as well?

  • Avatar of ursak ursak Apr 28, 2013 at 21:18 UTC - 0 likes

    <<reply 1425915>>
    The list that show what permission every action need it says

    Create a shop - BookShop.create
    Destroy own shop - BookShop.create
    Create a Adminshop - BookShop.create.admin
    Destroy shop of someone else or AdminShop - BookShop.create.admin

    I just wondered if Create/destroy has the same permissions cause according to the list they do (Create/destroy shop has both bookshop.create and create/destroy admin shop both has bookshop.create.admin

    Is that the correct permissions? Just wondering cause it felt like you could just write it together as 'create/destroy' and save a line each and people like me wouldn't be asking if there's a typo or correct. :)

    Last edited Apr 28, 2013 by ursak
  • Avatar of Arthurdes Arthurdes Apr 19, 2013 at 18:40 UTC - 0 likes

    @ibhh: Go

    thanks a lot : D,It's very sorry,because my englsih is very pool,let you feel plagued is my wrong : (

Facts

Date created
Aug 05, 2012
Categories
Last update
May 03, 2013
Development stage
Release
Language
  • deDE
  • enUS
License
All Rights Reserved
Curse link
BookShop
Downloads
62,375
Recent files

Authors

  • Avatar of ibhh
    • Manager
    • Author