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!
-
View User Profile
-
Send Message
Posted Dec 10, 2012I too really like this plugin and it has been tested on my server for quite some time now. We would not mind an updated version just to show that it runs with latest beta? but no stress since we arent using them much yet.
The idea posted sounded wonderful, but maybe rather then set a hard limit of 1 book per bookshelf either each booshelf could be toggled with a limit, or the config file could set a max limit.
Sign is ok idea but tends to block access to the bookshelf itself. might be trouble. either have an itemframe with the players head in it, (for that matter could itemframes be used to set the book on a wall? :P) or library will need a clean setup for each death story.
-
View User Profile
-
Send Message
Posted Dec 6, 2012@ridddle
Thank you for all the support and feedback, I am very pleased to know that you are enjoying the plugin.
I really enjoy the idea you have put forth in your post, and I am interested in integrating it into Shelf-It. It seems perfectly feasible and I believe I should have no trouble in adding it in. I should be able to begin working on this soon.
-
View User Profile
-
Send Message
Posted Dec 1, 2012Hello AkiraAkiba, thank you for making the plugin, it’s exactly what I need!
The server I administer has a feature called Limbo – it’s a set of complex buildings in The End and you go there for 1h when you die. There are games and challenges but the initial room you spawn in is a library. You get 1 free Book & Quil and—if you want—you can write your death story, sign it and deposit in the library. Then anyone can read it (thanks to your infinite copies support).
It would mean a world to me if you allowed your plugin to accept only 1 book per bookshelf block and allowed a way to recognize which bookshelves are taken. I was thinking – maybe place a sign on the bookshelf block with book’s title and author’s name?
As you can see again on the screenshot (here’s a close-up) there is a lot of bookshelves there. Without a way to see where the books are, it’s a cat-and-mouse game.
Thank you in advance!
-
View User Profile
-
Send Message
Posted Nov 20, 2012@nhoclesnar
I can definitely look into it. Thank you for the feed back.
-
View User Profile
-
Send Message
Posted Nov 19, 2012@AkiraAkiba
Can you support Towny regions, so that only people who can use switches in a town can have access to bookshelves? Thanks :D
-
View User Profile
-
Send Message
Posted Nov 19, 2012@epicbastion
Like EpicTrance said, you can add bookshelves to the lwc config, but I do not know if that will properly lock the shelves. Please let me know if you have tried this. ShelfIt does already support locking via worldguard regions though.
Thank you for your feedback.
-
View User Profile
-
Send Message
Posted Nov 7, 2012u can add lwc to every block u just need to ADD IT IN THE CONFIG
-
View User Profile
-
Send Message
Posted Oct 30, 2012would it be possible to make this compatible with LWC so your shelfs can be locked?
-
View User Profile
-
Send Message
Posted Oct 10, 2012@atomfitz
Thanks for the information. I will continue to look into this.
@tehsa
Thank you for your feedback. I really like the idea and will most likely implement it.
@ScrimCraft
Could you be more specific about what isn't working?
-
View User Profile
-
Send Message
Posted Oct 8, 2012Here are some tweaks and some suggestions that I have found
The protection doesn't work (disabled it) Other than that, great!
Suggestions: - /si reload - /si includeregions
-
View User Profile
-
Send Message
Posted Oct 7, 2012Could you somehow include the command "/si includeRegions" to undo the exclude command?
Otherwise great plugin. Your planned features look promising, too.
-
View User Profile
-
Send Message
Posted Oct 7, 2012Sent you a pm with the info you requested
-
View User Profile
-
Send Message
Posted Oct 5, 2012@atomfitz
I just finished running some tests and I am currently unable to recreate the error you posted about earlier. I suspect ShelfIt and some other plugin(s) are not playing well together. I already have a problem ticket open for what I suspect is the same core issue here. If I may, could I ask that you submit some additional details via the ticket or pm including:
However you wish to proceed, I want to thank you in advance for your time and patience.
-
View User Profile
-
Send Message
Posted Oct 5, 2012@cpyle0819
Thanks for the feedback. I like the chest-access flag idea as well, but I also have to consider that some users may want a region where players have access to chests, but not bookshelves. For that reason I'm still weighing my options about adding it.
@Q2Lummox
It is my plan for this to be the next added feature to the plugin. I just wanted to get the WorldGuard features in and ironed out first. I appreciate your interest in this feature and thank you for your feedback.
@atomfitz
Thank you for bringing this issue to my attention. I will do my best to correct this for the next release. As for the non-book item message coming from clicks on your own inventory, that is definitely not the intended behavior, and as such I will correct it for the next release. Thank you for your time and patience in this matter.
-
View User Profile
-
Send Message
Posted Oct 5, 2012If you click on an empty spot in your inventory while accessing a free bookshelf it sends an error to console:
2012-10-05 19:28:46 [SEVERE] Could not pass event InventoryClickEvent to ShelfIt
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1108)
at net.minecraft.server.Packet102WindowClick.handle(SourceFile:29)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
at net.minecraft.server.ServerConnection.b(SourceFile:35)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.ArrayIndexOutOfBoundsException
Also, every time you click or place a non book item in your inventory while opening a bookshelf you get the: "Non-book items may not be stored in bookshelves!" message. It would make sense if this message only appeared when you actually placed a non book item in the shelf.
-
View User Profile
-
Send Message
Posted Oct 5, 2012Please, add this feature:
Add shop type shelf with economy plugin support [Probably Vault based]
-
View User Profile
-
Send Message
Posted Oct 5, 2012Works like you said it would. :)
I do like your 'chest-access' idea better though but this solves my problem entirely.
Thanks!
-
View User Profile
-
Send Message
Posted Oct 5, 2012@cpyle0819
Ive just submitted version 1.2.2, which should resolve the regions issue. With it, you can now enable or disable the region-based protection entirely, or exclude specific regions from it by name. Thank you for your patience and let me know what you think.
-
View User Profile
-
Send Message
Posted Oct 4, 2012@cpyle0819
This is something I need to add, and I apologize for it not being in already, I was in a bit of a time crunch getting this out. More than likely I will end up pushing out an update soon that allows access in a region to anyone if the chest-access flag is set to allow. I will also try to incorporate a better, shelf only solution as well. If anyone has any suggestions for that I am very open to to them.
@EncryptedCurse
This is something I am currently considering, but haven't decided on yet.
Thank you both for the feedback
-
View User Profile
-
Send Message
Posted Oct 3, 2012While I appreciate the WG protection feature, I have a region that I don't want players to destroy but I want them to be able to access books without making EVERY player a member. Is this possible?