Plugin category: Mechanics, i guess Suggested name: RealLibrary What I want: Now,with writeable books, would be cool players can make them own libraries or Admins do help books in libraries, instead of using wasteful signs to it. A plugin that make possible you insert a book in a bookshelf and when you do it, you add an interface to the bookshelf and when a player right-click the bookshelf,it opens the interface with books, and make it possible to protect from stealing books, like when the player left-click a book on the bookshelf interface it opens the book without taking it of the bookshelf. For people dont steal the books, just the owner of the book and bookshelf can take or put books in the bookshelf (Sorry for bad english, im Brazilian) Ideas for commands: No commands needed for this plugin. Ideas for permissions: -rll.create (allow create bookshelfs with interfaces). -rll.destroy (allow destroy other players bookshelfs). When I'd like it by: ASAP. Please make this plugin if you can, i think its very useful for alot of people.
This is a good idea, but as timtower said, you can't force players to open a book. But you can give them a copy of it, and when they throw it away it can get deleted.
I dont understand what you guys mean with force to open a book, i just want a plugin that you can make libraries making it possible to red books but cant steal these books, the player open the book if he want, and would be cool the books be inside a bookshelf. Altered like what?
We can't make somebody open the book WITHOUT having a copy in the inventory, but hes saying that he could make it so after you choose a book it just gets a copy in your inventory.
I am having some debugging problems! I'm working on fixing them! I'll tell you a little about the plugin now. When you rightclick a bookshelf it opens an inventory the size of a dispenser renamed to bookshelf. You cannot put anything in the bookshelf except books. if you are looking at a bookshelf and type /lock players cannot open the bookshelf. if you type /display players can open the bookshelf and if they click on a book they wil get a copy of it in their inventory. Right now the bookshelves are like enderchests so every bookshelf will contain the same thing. (I'm pretty sure, but havent tested yet!). to counter /lock and /display you can type /unlock and /display off. The permissions are: player.lock and player.display you can guess what they allow.
Tip for an dev: You can track for PlayerMoveEvent and check if he moved more than 5 blocks from that bookshelf, if he did, just take that book from him and add it to bookshelf
Maybe there could be an "upgraded bookshelf". Also, willy00, perhaps you should consider using packets to send the ItemStack. It may be a pain but it removes any risk of a dupe glitch because the item never actually exists.
9 slots is good what matter is to have every single bookshelf his own inventory (not like enderchest that is 1 inventory to all enderchests). And with the /display when a player click on a book he got a copy of the book and dont take it, and this book will ever be there until the owner take this book no?
It was hard to understand what your saying because of your English (I know you're foreign) but i think you were asking if the player loses the book if the owner takes it out of the bookshelf. The answer to that is; I dont think so. i havent tested it but i think the player will have it until they get rid of it them self.
I think he was also trying to say he doesn't want bookshelves all the same... You said "Right now the bookshelves are like enderchests so every bookshelf will contain the same thing. " I don't think he wants them all to contian the same thing... All be serperate.
this is the only problem i have and no one will help me! http://forums.bukkit.org/threads/command-event.204523/#post-2071342 Finished! just got to test it now. ill post the link if there isn't any bugs. P.S. sorry for taking so long. this is my first plugin and im not too experienced at coding! thanks for the challenge though! EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I think you should make it like this: logic: You can set players as librarians You can set blocks as library shelfs IF AND ONLY IF you are a librarian, and you right-click a shelf, it opens a inventory in which you can store/retrieve books EDIT: Shelf blocks cannot be destroyed commands: /library add <player> - Makes the player a librarian /library remove <player> - The player is not a librarian anymore /library shelf add - The shelf block currently looked at is now a library shelf block /library shelf remove - The shelf block currently looked at is not a library shelf block anymore permissions: reallibrary.librarian.add reallibrary.librarian.remove reallibrary.shelf.add reallibrary.shelf.remove If you want it like this way I will make it. Please PM me for more details or to suggest any changes. If you do not accept I will probably make it anyway cause it sounds like a good idea.
Cool idea, I accept but i have a question , normal players (not librarians) can take copy of books and read them?