[REQUEST] RealLibrary

Discussion in 'Archived: Plugin Requests' started by BlockWar, Dec 4, 2013.

  1. Offline

    BlockWar

    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.
     
  2. Online

    timtower Administrator Administrator Moderator

    BlockWar We can't force the player to open a book as far as I know
     
  3. Offline

    Garris0n

    timtower likes this.
  4. Offline

    willy00

    I can make this plugin for you although slightly altered.
     
  5. Offline

    Mathias Eklund

    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.
     
  6. Offline

    BlockWar


    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?
     
  7. Offline

    UltiFix

    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.
     
  8. Offline

    BlockWar

    Thank you for explaining

    Ok, your idea is alright, no problem if cant force players

    Bump.
     
  9. Offline

    UltiFix

    No problem!
     
  10. Offline

    BlockWar

  11. Offline

    willy00

    Im working on this. 90% done!
    sorry for being slow. been busy!
     
  12. Offline

    BlockWar

    OMG Thanks this plugin is very important to me, maybe i can make the art of it :D
     
  13. Offline

    willy00

    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.
     
  14. Offline

    Brixishuge

    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 :)
     
    timtower likes this.
  15. Offline

    BlockWar

    Thanks for the idea, is very interesting.
     
  16. Offline

    BlockWar


    Make the bookshelves like chests if possible please?
     
  17. Offline

    Garris0n

    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.
     
  18. Offline

    willy00

    I can do that. do you want 9 slots?
     
  19. Offline

    BlockWar

    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?
     
  20. Offline

    willy00

    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.
     
  21. Offline

    UltiFix

    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.
     
  22. Offline

    BlockWar

    Yeah ultifix thats what i want
     
  23. Offline

    BlockWar

  24. Offline

    willy00

    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.
     
    Last edited by a moderator: Jun 5, 2016
  25. Offline

    BlockWar

    Dont worry
     
  26. Offline

    BlockWar

    Ready?
     
  27. Offline

    Pocketkid2

    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.
     
  28. Offline

    BlockWar


    Cool idea, I accept but i have a question , normal players (not librarians) can take copy of books and read them?
     
  29. Offline

    Zachster

    I love the idea but most of this can't be done without client mods.
     
  30. Online

    timtower Administrator Administrator Moderator

    That is why they talked about that in the other comments
     

Share This Page