[MECH] Bookit v1.0.0 - Commands with books(BookWorm-compatible) [953]

Discussion in 'Inactive/Unsupported Plugins' started by retsrif, Jun 29, 2011.

  1. Offline

    retsrif

    Bookit - Commands with books

    <font color="rgb(255, 0, 0)">Pronounced Book-it, not Boo-kit.</font> :)

    <font color="rgb(255, 0, 0)">Need someone to take a video :p</font>

    Version: 1.0.0

    Description: Ever needed fast execution of a command? Were you ever sitting there watching your opponent give you the final blow as you didn't have enough time to type out '/heal'? Have you ever fallen in lava and couldn't teleport in time, and lost all your precious diamonds, so you resorted to crying in the corner? Well not any more! Hooking into the plugin called BookWorm, which allows you to name and write in books, you can have instant commands at your disposal! All you have to do to execute the command, is to set the command as the title of your book, and then just tap your sneak button while you hold the book.

    Config options:
    * use-up-books, if true, it removes a book upon usage of a command
    * specific-authors, if true, only allows book commands to be executed if they were written by specific people
    * authors, list the authors, separate each name with a comma, no spaces

    Features:
    * Hooks into easy to use BookWorm plugin.
    * Quick way of executing commands.
    * You can remove the book on use, so people don't abuse it.
    * Allows you to set it so only books written by specific people can be executed as a command.

    Changelog:

    1.0.0
    * Plugin created.

    Bugs:

    * Removing books doesn't work properly.

    To-do:
    * Fix removing books on use option.

    Download: <Edit by Moderator: Redacted mediafire url>

    Source: Coming soon!

    Thanks to chubbz for the idea!
     
    Last edited by a moderator: Nov 27, 2016
  2. Offline

    The Angry kat

    Just pointing this out, but shouldn't there be a [Category] ?
     
  3. Offline

    retsrif

    Eep, long time since i made a new plugin... thanks :)
     
  4. Offline

    The Angry kat

    :) your welcome, and this plugin looks very useful! :O
     
  5. Offline

    Grammar Troll

    I was about to say: "Brilliant idea, but unfortunately I already am using the BookWorm plugin, so I can't use other plugins that use books".
    [​IMG]
     
  6. Offline

    retsrif

    No problem, and thanks! :D I'm looking for someone to make a video, stay tuned to see it in execution :)

    Lol, do you think i should add something into the title?

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

    chubbz

    thanks for making this plugin
     
  8. Offline

    retsrif

    No problem :)
     
  9. Offline

    Celtic Minstrel

    Seems like a nice idea, but it occurs to me that setting the command as the title rather than the content is missing the opportunity to give the command book a more descriptive title. Also, allowing for targeted books might be a nice addition: include some special variable (eg the string "$target") in your command and it'll be replaced with whoever or whatever you click on ... though that's probably not as easy as it sounds unless you only allow players as targets.
     
  10. Offline

    Plague

    Update the plugin to latest recommended build and change the title accordingly.
    Failure to do so will result in this moving to INACTIVE section.
     
  11. Offline

    Celtic Minstrel

    Um, 935 is the latest recommended, isn't it?
     
  12. Offline

    Plague

    nope 953 is
     
  13. Offline

    Celtic Minstrel

    ...oh. Right, two digits switched. Might've even been a typo.
     
  14. Offline

    undeadmach1ne

    wow i just suggested something like this in the bookworm thread =) ill have to try this out and see how it works so far, there is a lot of potential for this combined with other mods...you can sell books at shops that give permissions and all kinds of things. thanks for this =)
     
  15. Offline

    Celtic Minstrel

    And if you have the MagicSpells plugin, you can make spellbooks with this.
     
  16. Offline

    undeadmach1ne

    ok just finished looking at it. i think it will be awesome when you work out removing books. i will carry my suggestions over here from the bookworm thread to see what you think. make the title choose whether the book is a normal bookworm book, a bookit book, and whether or not it will be removed on use (also let the triggering words be selectable in the config files). example: if the title contains the word 'scroll' it will be removed after one use, if the word 'tome' is in the title it will remain after being used, and the command itself goes in the book via /write [command].

    thanks for this plugin =)

    this would also be awesome. bookworm can tell who authored a book, i wonder if it can tell who is reading it so you could pull that info and put it in a %user tag for /give %user item type commands or even %target commands like Celtic Minstrel suggested for even more flexibility (heal %target etc).

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

    retsrif

    Ok thanks Celtic for the idea, and @Plague I'll try and get it done, but i can't actually test at the moment... Also, what happened to having a plugin work with at least one of the three previous RB's? @undeadmach1ne can you please test this on 953 for me? :)
     
  18. Offline

    undeadmach1ne

    i tested it thoroughly tonight on 953. it executes the commands as advertised, but they are not used up (even if true) and i dont think the 'specific-authors' flag works either. i was just able to execute a command using a book i wrote with another username. i will be happy to do any further testing you need as well. just let me know what to do/test/log/record (fraps)/etc...

    my highly complex custom config used during testing procedure:

    Code:
    authors: undeadmach1ne
    use-up-books: true
    specific-authors: true
    
     
  19. Offline

    retsrif

    At least the actual plugin works.. Ill try fixing it but i can't probably until the 20th :/ can you record a video of the plugin please?
    Also, i think i know what the problem is so as soon as I can, ill fix this.
     
  20. Offline

    undeadmach1ne

    what do you want me to make a video of? just creating a book with a command for a title and then using it?
     
  21. Offline

    retsrif

    Yeah, and after the fix, the other features if you don't mind :)
     
  22. Offline

    Plague

    That applies to already released plugins, not submissions
     
  23. Offline

    retsrif

    Oh ok
     
  24. Offline

    MonsieurApple

    Approved!
     
  25. Offline

    retsrif

    Thanks @MonsieurApple! :)
     
  26. Offline

    undeadmach1ne

    just curious how things are coming with this?
     
  27. Offline

    retsrif

    Lost the source... D: It's somewhere on a flash drive though... :p I need to get it first
     
  28. Offline

    undeadmach1ne

    oh that sucks =( not possible to decompile?

    ps - the face in your picture is perfect for 'lost the source' :) reminds me of this picture. i laughed out loud actually...
     
  29. Offline

    retsrif

    Lol at the picture :) I can still get the code though.. See I had it on a laptop and a flash drive, and I should be able to get the laptop in the next few days :p
     
    undeadmach1ne likes this.
  30. Offline

    undeadmach1ne

    cant wait to see this make some progress :)
     

Share This Page