Filled Hats

Discussion in 'Plugin Requests' started by Blooby, Apr 22, 2018.

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

    Blooby

    Plugin category: Fun

    Minecraft version: Spigot 1.12.2

    Suggested name: Hats

    What I want:
    So what I want might be rather easy, I'm not sure, but I just need a plugin that allows players to open up a GUI and buy hats for a designated price. The hats will require items with damaged item variants as the hats I am using are 3D Modeled using Cubik Pro.

    To get to the hat shop, you will type /hatshop and this will provide you with a GUI consisting of all the added hats in the server. You should be able to scroll through multiple pages with the GUI as there will be a bunch of hats added in.

    Once you have purchased a hat, it will be transferred to your /hats. In the /hats will be an entire GUI that has every hat that you have purchased. You should be able to switch pages as there will be a bunch of hats on this server for players to purchase.

    To put a hat on, you will need to make your way back to /hats. When in /hats, all you have to do is click the hat you want to put on. When you have put the hat on, you cannot take it off and put it in your inventory; it should be stuck. The only way to remove it is by going back to /hats and clicking on a barrier block at the bottom of the GUI that says. "Remove Current Hat". After you have clicked this, the hat will be removed from your head and will remain in your /hats GUI, not in your inventory.

    To add a hat, I would prefer to do it within the config. For each hat, there should be an option to set Permission to true, meaning that only people with certain permissions can use that specific hat as some may regard to certain jobs; as well as donator perks.

    Ideas for commands:
    • /hatshop This will be to open the actual shop where the hats are sold in a GUI.
    • /hats This will be the GUI that has all the hats that you have purchased.

    Ideas for permissions:
    Anyone should have permissions to do just about everything unless certain hats are donator ones, or designated to specific jobs.

    When I'd like it by:
    May 19th

    Thanks to anyone who attempts this!
     
  2. Offline

    Sploon

    I can do this.
     
  3. Offline

    Blooby

    Perfect, thank you!
     
  4. Offline

    Sploon

  5. Offline

    Blooby

    Didn't even know someone else was making it! Can you use variables? Like 933:1 or 933:4?

    Oh wait it's you haha didn't see the name! But yeah, question above still stands

    Okay, so, I have added my hats with all the fields and it says "[Hats] No entries to display"

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Apr 26, 2018
  6. Offline

    Sploon

    Can you send me your config? Also - any errors in console? It's possible there's a syntax error or something.
    As for your question - use the material name (instead of the id - 933 in your example). Instead of number:1, set the subtype-id to 1.
    So something like:
    hat-123:
    ---type: STONE
    ---subtype-id 47
    .. other fields
    (ignore the dashes, for whatever reason multiple spaces are being ignored).
     
  7. Offline

    Blooby

    Black-Hat:
    type: 293
    display: "&6Black Hat"
    permission-needed: false
    subtype-id: 30
    cost: 200
    discount-cost: 100
    Black-Hat2:
    type: 293
    display: "&6Black Hat(Backwards)"
    permission-needed: false
    subtype-id: 31
    cost: 200
    discount-cost: 100

    theres my config up there, and it was even doing that when it still had your example ones. Also, i looked, no console errors!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  8. Offline

    Sploon

    I tested your config - I had to change the type (item IDs aren't used anymore, use the item name -- DIAMOND_HOE); other than that, it seemed to work fine. I do have to ask, though, are you sure there are no console errors? When I loaded your configuration, there was an error caused by an unrecognized item name.
    But you say that the default examples don't even work? I'm rather confused, I just tested them now and I don't have any issues.
    Finally, when you get the "no entries to display" message, is that for /hats, /hatshop, or both (for the defaults, and your configuration)?
     
  9. Offline

    Blooby

    Hmm, i changed it to DIAMOND_HOE and it still is saying the no entry. And it is saying that for /hatshop and /hats or /hat

    Could it be an issue with me having essentials installed as /hat is a command you can use?

    Also, I am sure that there are absolutely no console errors.





    Black-Hat:
    type: DIAMOND_HOE
    display: "&6Black Hat"
    permission-needed: false
    subtype-id: 30
    cost: 200
    discount-cost: 100
    Black-Hat2:
    type: DIAMOND_HOE
    display: "&6Black Hat(Backwards)"
    permission-needed: false
    subtype-id: 31
    cost: 200
    discount-cost: 100
     
Thread Status:
Not open for further replies.

Share This Page