Filled Autograph Plugin

Discussion in 'Plugin Requests' started by MickeyIsbae, Aug 13, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    MickeyIsbae

    Plugin category: Chat

    Suggested name: TheMagicalAutograph

    What I want: I want a plugin that allows people with a specific permission to sign another persons book. When someone joins they have an Autograph Book in their inventory then someone like an owner or developer can do /sign (IGN) then the player recieves a message like "You have recieved an autograph request from Joe" then they can do /autograph or /a accept. The book then disappears from their inventory the player that sent the request can then put a message in by doing /sm (/signmessage) like &aWelcome to our network! -Dan etc. Once they click done it sends it back to the player and it says "Joe signed your book!". There should also be a timer that is customizable on the time, but it is the time until the request expires. The count down should be a action bar message, and say "Your autograph request from (PLAYER) expires in: (TIME)". The autograph book in the inventory should not be moveable, or droppable. All messages from the plugin except the action bar message should have a customizable prefix.

    Ideas for commands:
    /sign [IGN or Autograph Nickname] - Sends an autograph request to sign their book;
    /autograph accept - Accepts an autograph request;
    /autograph deny - Deny's an autograph request;
    /sm - Puts message in the person who requested the autograph's autograph book;

    Ideas for permissions:
    autograph.accept - Allows you to accept an autograph request.
    autograph.accept - Allows you to deny an autograph request.
    autograph.request - Allows you to send a request to sign a players book.

    autograph.sign allows access to:
    autograph.request

    When I'd like it by: As soon as possible
     
    Last edited: Aug 14, 2016
  2. Offline

    TheRealKS123

    Will take a look at it. Should be fairly easy but I won't make any promises.
     
  3. Offline

    MickeyIsbae

    Ok, thank you! I hope that it works well!
     
  4. Offline

    TheRealKS123

    Done.

    Download
    A bit of documentation for you:
    - Commands:
    /autograph, /a, /sign, /signature: subcommands: accept | deny | sign[msg] | request[IGN]
    /ainfo, /autographinfo: display info about the plugin
    -Permissions:
    Code:
      autograph.*:
        description: Gives access to all autograph commands
        children:
          autograph.accept: true
          autograph.deny: true
          autograph.request: true
          autograph.sign: true
      autograph.accept:
        description: allows you to accept an autograph request
        default: true
      autograph.deny:
        description: allows you to deny an autograph request
        default: true
      autograph.request:
        description: Gives access to autograph requesting
        default: true
      autograph.sign:
       description: allows you to request and sign autograph books
       default: true
       children:
         autograph.request: true
    Source: click here

    If anything is unclear, just let me know
     
    Last edited: Aug 15, 2016
  5. Offline

    MickeyIsbae

    @TheRealKS123 Thank you so much! Just making sure, the plugin is 1.8 compatible, correct? Again, thank you so much!

    @TheRealKS123 Hello again, I was wondering if there was anyway to make it so that the guest can not write in the autograph book, and only the people that have requested to sign can sign the book?

    Maybe make it a signed and closed book, also making the signatures be able to use color codes, If this is not possible I understand, I was just wondering!

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

    TheRealKS123

    Last edited: Aug 15, 2016
  7. Offline

    MickeyIsbae

    @TheRealKS123 The color codes when setting the custom messages does not work, it shows up like the photo attached, also when you do &b when signing it does not work, when I try to use §, it will not paste in the chat. I also can not use color codes for the name of the autograph book, if there is anyway to make it so I can choose what slot the autograph book is in, and make it so the autograph book is not moveable, droppable, or editable by the player that owns the book. The plugin also seems to give a player a new autograph book everytime a player joins so they end up with several books. Thank you for looking into the problems!
     

    Attached Files:

    Last edited: Aug 15, 2016
  8. Offline

    TheRealKS123

    That's weird because in my testing, the color codes show up correctly. Maybe it has something to do with your resourcepack? If everything is configured correctly, the plugin should only give you a book if you don't have one already.

    I've looked at your feedback and added those features:
    - Books are now signed and closed, the player cannot edit it.
    - Books can now not be dropped, or be moved in the inventory. Please note that the book can still be removed if people do /clear!
    - You can now use @color in your signing messages. The bookname color can be adjusted using §COLOR, just like all other messages

    Download

    If the colors aren't showing up correctly in your client, this is not an error in the plugin, it has always worked for me.
    (see this image)

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

    MickeyIsbae

    @TheRealKS123 Can I have a screenshot of your config with the color codes for the book title in stuff, I just want to see what it looks like, so I can match mine to it, while being able to use color codes.
     
  10. Offline

    TheRealKS123

  11. Offline

    MickeyIsbae

    Last edited: Aug 20, 2016
  12. Offline

    TheRealKS123

    Keep in mind that you will have to reload/restart the server to apply changes to the config! I haven't implemented a reload command in the plugin.
     
  13. Offline

    MickeyIsbae

    @TheRealKS123 I understand that, it just does not ever finish saving the config file, then it gives me an error and restarts and resets the server and config file
     
  14. Offline

    TheRealKS123

    Is that error related to the plugin I wrote?
    If it's not, the only advice I can give you is to stop the server while editing the file.
     
  15. Offline

    MickeyIsbae

  16. Offline

    MickeyIsbae

    @TheRealKS123 Is there anyway that you can make permissions not default? Also, whenever the book is signed it seems to put it into slot 1 not the specified slot. (It puts it into the specified spot upon joining but not after that) It also seems to be only giving the player a book if I set it to give everytime, even if the player does not have a book.
     
  17. Offline

    TheRealKS123

    That bug has been resolved, permissions defaults are gone, but I can't find an issue with the book giving, it works in my testing. I have however added a more 'dirty' way of checking if the player already has a book. This method is less reliable, but if the other system really doesn't work for you, you can enable that other method in the config.

    Download
     
  18. Please mark this thread as filled.
    See how here.
     
Thread Status:
Not open for further replies.

Share This Page