[FUN/MECH] BookWorm v1.14 - Read and write books[BukkitDev]

Discussion in 'Archived: Plugin Releases' started by nisovin, Jun 19, 2011.

  1. Offline

    JamesS

    It looks really nice, and very easy to use, but when attempting to write I am getting "An internal error occoured while attempting to perform this command"

    Would another of my plugins be conflicting with it perhaps?
     
  2. Offline

    nisovin

    Are you talking about removing or copying? Those are two different actions that seem similar.
    What exactly does your control panel reload do?
    It depends on what kind of giving plugins you have. CommandBook, for example, allows you to specify a book id like this: /item book:5. I believe General has something similar.
    Could you post the actual error you are getting? The one on the console?
     
  3. Offline

    JamesS

    I've just remembered Im using a rather old version of bukkit. I expect that is the issue, Ill update to 1000, I think I'm on 816 *slaps self*

    Yep I knew it. It was simply me on an outdated bukkit version. ONCE AGAIN my incompetence and inability to keep up with bukkit leaves me sitting on the corner with the dunce hat on. I can now proceed to scream about how excellent this plugin is, easier to use than any other type of shelf addon I have used in the past with much more vesatility. Very well done to you indeed Nisovin. Very well done indeed.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  4. Offline

    JoshP95

    So with just the basic op command of "/give 340" (which is a book), I won't be able to do it? Or is there a way?
     
  5. Offline

    nisovin

    No, you need a separate item spawning plugin. I'll add this feature to my todo list though.
     
  6. Offline

    JoshP95

    Right okay! Cheers for the help, I might look into CommandBook. Brilliant plugin!
     
  7. Offline

    JamesS

    Its very impressive. I've wanted something like this for so long, absoloutly brilliant. And the fact it is so easy to use as well. Give credit where it is due! Usually the better looking the plugin is, the more paperwork and thousands of commands there are :D

    MY GOD. I LOVE THIS PLUGIN.
     
  8. Offline

    Phealoon

    (Book: Phea's Journal)

    OP PLAYER: If they right-click the bookcase, they can read Phea's Journal. If they left-click the bookcase, Phea's Journal appears in their inventory.

    NON-OP PLAYER: If they right-click the bookcase, they can read Phea's Journal. If they left-click the bookcase, nothing happens.
     
  9. Offline

    nisovin

    Do they have bookworm.copy.others?
     
  10. Offline

    Phealoon

    This is their permission nodes:
    Code:
            permissions:
                - 'bookworm.create'
                - 'bookworm.write.own'
                - 'bookworm.copy.own'
                - 'bookworm.copy.others'
                - 'bookworm.remove.own'
                - 'bookworm.remove.others'
                - 'bookworm.destroy.own'
    and it still won't work for them.
     
  11. Offline

    mg123

    GREAT plugin great work!
    the users on my server love this.
    one problem the replace command wont work for me.
    this is what i type:
    /write -replace <Powerfull> -> <Powerful>

    Found out something great! If you have iConomy and iConomyChestShop you can sell the book.
    1. write the book.
    2. type: /iteminfo (when the book is in your hand.)
    3. make the chestshop and use the item id /iteminfo gave you.

    the item id will be something like
    240:1 240:6 240:27 240:46

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  12. Offline

    DetCox

    hey any thought of adding MySQL support?
    It would reduce the amount of text files and allow for people to edit or make books in a web like interface with PHP.
    it would be really nice and make this plugin even better!
     
    Sketaful likes this.
  13. Offline

    nisovin

    I have no plans to do this. I don't see how reducing the amount of text files is useful, and PHP is perfectly capable of reading text files. In my opinion, the convenience of directly editing the text files outweighs any conveniences MySQL might give.

    Show me your config file.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  14. Offline

    Phealoon

    Here is my config

    Code:
    strings:
        no-permission: You do not have permission to do that.
        command-undo-fail: Unable to undo.
        write-done: 'Wrote line: %t'
        command-replace: replace
        command-erase-done: Text erased.
        command-invalid: Invalid command.
        by: by
        command-replace-done: Text replaced.
        command-eraseall: eraseall
        placed-book: 'Book placed in bookshelf:'
        command-undo-done: Undo successful.
        command-help-text: "Special commands:\n   /%c -chat -- toggle chat write mode\n\
            \   /%c -read <page> -- read the specified page\n   /%c -undo -- undo the\
            \ last write action\n   /%c -erase <text> -- erase the given text\n   /%c\
            \ -replace <old text> -> <new text> -- replace text\n   /%c -title <new title>\
            \ -- change the book's title\n   /%c -eraseall -- erase the entire book"
        page: page
        write-fail: You cannot write in a book that is not yours.
        removed-book: 'Removed book:'
        command-read: read
        command-title: title
        usage-write: 'Use /%c <text> to add text to your book.
    
            You can use a double-colon :: to create a new paragraph.
    
            Left click on a bookcase to place your book.
    
            Type /%c -help to see special commands.'
        command-chatmode-on: Chat write mode enabled.
        copied-book: 'Copied book:'
        read-divider: '--------------------------------------------------'
        new-book-created: 'New book created: %t'
        usage-read: Right click to read.
        command-chatmode-off: Chat write mode disabled.
        command-help: help
        must-hold-book: You must be holding a single book to write.
        command-replace-fail: Text not found.
        usage-start: Use /%c <title> to start your book.
        cannot-destroy: You can't destroy someone else's bookshelf!
        command-chatmode: chat
        command-eraseall-done: Book contents erased.
        placed-book-fail: You cannot put a book here.
        book: Book
        command-erase: erase
        command-undo: undo
    formatting:
        indent-size: 4
        line-length: 55
        page-length: 6
    general:
        secret-amazing-code-do-not-change: bj
        text-color: 10
        use-permissions-plugin: true
        book-info-achievement: true
        require-book-to-copy: false
        use-full-filenames: true
        clean-interval: 600
        drop-bookshelf-on-break: false
        show-title-on-held-change: true
        check-worldguard: true
        remove-delay: 300
        auto-chat-mode: false
        text-color-2: 15
     
  15. Offline

    VoidGangsta

    Love it. Hope you will keep updating and make more great plugins! Cheers to you.
     
  16. Offline

    caloletti

    So I installed the plugin but when I try to write a book I get a error...

    Code:
    20:53:06 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'w' i
    n plugin BookWorm v1.5
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    98)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:711)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.hasPermission(L
    java/lang/String;)Z
            at com.nisovin.bookworm.PermissionManager.hasPerm(PermissionManager.java
    :78)
            at com.nisovin.bookworm.PermissionManager.canCreateBook(PermissionManage
    r.java:25)
            at com.nisovin.bookworm.BookWorm.onCommand(BookWorm.java:225)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    I have no permissions (OP) and I have the default config of the plugin.
     
  17. Offline

    Celtic Minstrel

    @caloletti – You're on an old version of CraftBukkit; that's why you're getting that error. Upgrade to 1000.

    Try it without the <>'s.
     
  18. Offline

    Phant0mX

    Thanks for the reply. Is there a limit to how many books can exist?
     
  19. Offline

    Celtic Minstrel

    Yes. You can't have more than 32,767 books if I understand correctly.

    ...though that limit could probably be doubled if he uses negative numbers.
     
  20. Offline

    mg123

    thank you it worked
     
  21. Offline

    Phant0mX

    Aww, you mean with an average of ~10 books per map, I can only put 3,276 instanced adventure maps on my server? Kidding of course, lol. :p

    I think that will be plenty for my needs. Thanks!
     
  22. Offline

    xwyz

    How can i go previous page on book?
     
  23. Offline

    Grammar Troll

    Spout is the new BukkitContrib, and since all the names and such were refactored, all the BukkitContrib plugins will have to be updated to use Spout.
     
  24. Offline

    nisovin

    Version 1.6 is released. The most important thing about this version is that it supports Spout rather than BukkitContrib. It's mostly just a name update (BukkitContrib changed its name to Spout), but this does make it completely incompatible with BukkitContrib and any clients using the BukkitContrib client mod. Keep this in mind when updating. For now I'm including both this new version and the previous BukkitContrib version in the downloads list.
     
  25. Offline

    CainFoool

    07:12:11 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bw' in plugin BookWorm v1.6
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassCastException: org.bukkitcontrib.player.ContribCraftPlayer cannot be cast to org.getspout.spoutapi.player.SpoutPlayer
    at com.nisovin.bookworm.SpoutHandle.setBookName(SpoutHandle.java:15)
    at com.nisovin.bookworm.Book.setItemName(Book.java:98)
    at com.nisovin.bookworm.Book.<init>(Book.java:44)
    at com.nisovin.bookworm.BookWorm.onCommand(BookWorm.java:316)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    >
     
  26. Offline

    nisovin

    I believe I made it plenty clear that this version is not in any way compatible with BukkitContrib.
     
  27. Offline

    CainFoool

    I don't have BukkitContrib.. I got Spout installed.
     
  28. Offline

    nisovin

    That error can only happen if you have BukkitContrib installed. It's trying to cast from a Contrib object to a Spout object.
     
  29. Does the spout support only add per-book tooltips? Because a simple GUI for writing books and storing them in bookcases such as is found in single player book mods would work wonders.

    Also, (sorry if I'm sounding pushy :X) I would like to have each copy of a book become a book record in and of it's self, so that after a copy is made, it can be edited independently. Would there be an option for that?

    Thankyou very much ^_^
     
  30. Offline

    redmath

    One of the best things in the Plugins List.
     

Share This Page