Shelf-It!
Shelf-It!
With Shelf-It you can store whatever you please in any bookshelf with a simple right click! Shelf inventories are saved, and can be set to just give copies of their contents like a "free" sign. Bookshelves can also be set up as Vault-based shops.
Features
- Bookshelves store only what you want! Shelf-It lets you decide what can and can't store in bookshelves.
- Chest-style inventories with configurable number of rows
- Switching to fewer rows later is no problem, as bookshelves automatically adjust size to accommodate their inventory!
- Individual bookshelves can have unique titles and number of rows!
- All contents are dropped when destroyed
- Shelves keep the correct contents, even when moved by pistons!
- Bookshelves' contents are saved to a .yml file for easy reading and modifying!
- Bookshelves can be set to give infinite copies of their contents or setup as a shop
- Configurable bookshelf inventory names that support color codes
- Multiple players can access the same shelf at the same time
- Limit players to accessing shelves from the side only [Configurable]
- Supports use of WorldGuard and Towny regions to limit shelf access [Configurable]
- LWC compatible
- Includes simple locking command for basic access protection
- Protection to prevent shelf destruction via fire and explosions [Configurable]
Usage
[Video tutorial courtesy of Wukkit]
To open a bookshelf right-click it with your bare fist or while holding a non-place-able block/item. Shelves can be used to store any item listed in the config file. All data is saved to BookshelfData.yml in Shelf-It's plugin folder.
Breaking a bookshelf yields its regular drops plus anything that was stored in it. Only players with the "shelfit.admin" permission can break "free" type shelves. Shop shelves may only be broken by their owner or by players with the "shelfit.admin" permission
Concerning Future Updates
Development for this plugin is currently inactive for the foreseeable future, though I would love to start again if I ever got the chance. If I become aware that this plugin no longer functions with current builds of bukkit and minecraft I will update this page to reflect that.
A sincere thank you to everyone who used and/or gave feedback for this plugin. It was a pleasure while it lasted.
If you enjoy this plugin and want to say thanks, some
caffeine
is always welcome :D
Check out my other plugins!
Feel free to leave comments and suggestions! PM me if you would like to submit a video tutorial!
@AkiraAkiba
GriefPrevention?
@AkiraAkiba
yes, that's i mean, rows. anyway great plugin
@xDizasterCYx
I am glad to hear you are enjoying the plugin, and I am always grateful for additional feedback and ideas.
1. I really like the custom title color idea. I will see what I can do to get it in the next update.
2. Shelf-It already supports protection via Towny, WorldGuard, and LWC. I will probably add Lockette support in the next update. I may add a simple lock / unlock implementation like what you suggested in the future, but I honestly believe the currently supported protection plugins offer a better solution for all parties.
3. If I do add the simple lock / unlock protection, it will behave in this fashion.
4. I'm not 100% sure I'm understanding this correctly, but I believe you mean being able to customize the number of slots in a bookshelf via the config, and you probably mean on a shelf by shelf basis. Please let me know if I have misinterpreted this. Otherwise, I will try to add this feature in a future update. As far as I know you can only specify the number of rows, not individual slots.
Thank you again for all the fantastic feedback. I will do my best to make these additions.
i have some ideas for this awesome plugin:
1. custom color codes on Bookshelf Title
2. Protection (Lock or Unlock Because i don't thing someone wants to see his bookshelf empty)
3. support for grief prevention (claims automatically the bookshelf if someone creates claims and locks the bookshelf from opening)
4. custom bookshelf slots via config
i hope thoose ideas will help you for the 1.6.4 or 1.7.0 version of your plugin. Thanks.
@x_clucky
I just finished my testing, and WorldGuard, LWC, and Towny protection all worked fine for me. I also just submitted Shelf-It v1.3.4 for approval. If you are still having difficulties with shelf protection I would recommend giving that update a try.
Please let me know if the update does not help.
@x_clucky
Actually, that is more or less how Shelf-It handles protection. However, Shelf-It still needs to know how to ask specific plugins if the player can open chests or build in that area. It is in that manner that the World Guard and Towny protection functions. The closest thing to universal protection comes in the form of LWC's protection.
LWC lets you specify what interactions it monitors. So for example, you just add the block id for bookshelves to LWC's block protection list, and it will decide if the player has access rights to the shelf or not. In the case of not having access rights LWC sends a notice that that right click event was cancelled, and Shelf-It listens for those cancellations and prevents access.
Unfortunately the vast majority of protection plugins don't listen to right clicks on bookshelves, so Shelf-It ends up needing specific code to ask specific plugins about access rights.
I hope this explanation has clarified how protection plugins and Shelf-It work together, if only a little. I will continue to get Shelf-It up to date and compatible with the changes 1.6.2 has brought us. Please let me know if you have any further questions or suggestions.
Thanks again for your continued interest.
@AkiraAkiba
One thing you could consider doing. SignEdit prevents changing a sign in an area where a player is unable to build. Do you think there is a possibility that something like this could be applied to ShelfIt, only with the ability to open chests, this way it will not have to be accustomed to every protection plugin available?
@x_clucky
Thank you for bringing this to my attention. I know that prior to the 1.6 update Shelf-It was working fine with LWC, WorldGuard, and Towny access protection. I will look into this and try to pin down the cause.
As always, I appreciate you continued interest in this plugin, and I hope to have a fix out relatively soon.
Hey @AkiraAkiba,
Would you mind adding in where opening a bookshelf requires the ability for a player to be able to open a chest? I'm wanting to block players from opening bookshelves in an area where they either do not have LWC access, or chest (container) access in a Residnece/GriefPrevention region. This is a MAJOR SECURITY FLAW and it really needs to be fixed. Thanks! :D
@FlOppythp
I'm glad to hear you are enjoying the plugin.
As far as updating goes, I would like to wait till at least the first beta build for 1.6. Please let me know if you encounter any issues in the meantime.
Regarding the book bug you spoke of, when this occurred were there any errors in the console?
As for the altering of a shelf's appearance based on its fullness, that is definitely a fantastic idea, but sadly it is one that is currently beyond Bukkit's capabilities.
Once again, thank you for your feedback and suggestions.
@slugshelI
Thank you for the information and feedback. I appreciate both very much.
Great plugin, also it seems to be working with 1.5.2
@MinecraftownerT: So here i go and affirm that you are most likely using a crappy virus scanner or just have the need to troll. Either Way i have reported your post ;)
@MinecraftownerT
All Bukkit plugins hosted on BukkitDev are inspected by Bukkit personnel before they are accessible for download. Your AntiVirus program has just reported a false positive.
@gamemoe
Are you experiencing some sort of error or glitch? I would be happy to be of assistance if this is the case, though I would need a bit of clarification to get started.
i have 1.5.1 and Shelf-It v1.3.1 for CB 1.4.7-R1.0 all worked. now i update and see it...
To @Tealk123
Both of these error logs are from a bukkit 1.5 server.
A change between bukkit 1.4.7 R1.0 and the current 1.5 builds have made Shelf-It inoperable. Shelf-It needs a 1.5 update before it can regain its functionality.(Edit: After testing with bukkit 1.5.1R0.1 I am unable to reproduce either error, so the bukkit build change is not the source of these issues. If there is any additional information you can send me, please do.)
I will do what I can to get that update out shortly.(Edit #2: Shelf-It v1.3.2 has been submitted for approval)@levisn1
I am not sure I am fully understanding what you have said. Are the actual bookshelf blocks disappearing as well?
I can also confirm the BookshelfData.yml file just wiped itself on my server with the following error: http://pastebin.com/YKCMstxv
Guys, you also have the problem of the libraries that disappear? Not only those with a book inside but all.
@AkiraAkiba here a new one
http://pastebin.com/HJhDXEBJ
@patalkok
I can definitely look into it. Thank you for your interest.
@Tealk123
I get an unknown paste id error when I follow the link.