Filled Auto Disco-Armor

Discussion in 'Plugin Requests' started by GravedigginSearchBar, Feb 5, 2017.

Thread Status:
Not open for further replies.
  1. Plugin category: MISC

    Minecraft version: 1.8+

    Suggested name: Auto Disco Armor

    What I want: I would like any person to create a plugin that will allow disco armor that flows smoothly for example: Here without the hassle of an command, all you need to do is just wear the four pieces of armor. Also have enchantment support and lore support as well (what i mean about this is, when the color of the armor is changing make it so the enchantment/lore is saved, unless it's already saved). If you stumble upon a plugin similar to mine, feel free to link!

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: autodiscoarmor.use ?(optional)

    When I'd like it by: Yesterday.
     
  2. Offline

    Binner_Done

    How would you make the armor?
     
  3. It would just be equipping normal leather armor. No special crafting, just leather armor will trigger the disco armor

    EDIT: But that is all up to the developer of the plugin ;)
     
    Last edited: Feb 6, 2017
  4. Offline

    Binner_Done

    Ah, makes sense.
    Any specific colours (I'm not offering to do the plugin, just gaining info for anyone that does)
     
  5. Offline

    I Al Istannen

    @GravedigginSearchBar
    Does the player have to be able to see the changing?
    Beause using just the Bukkit API the inventory does not update fast enough. Other players see a smooth transition, you don't.

    Using packets you can circumvent that probably, but that makes it more version bound and unsafe.

    EDIT: I made it. It should display correctlyfor every player, even the one wearing it.
     
    Last edited: Feb 7, 2017
  6. It would preferably that other players see the disco armor but if it doesn't work out like that. I'm totally fine with it being client sided
     
  7. Offline

    I Al Istannen

  8. Omg, thank you so much, works perfectly.
     
  9. Offline

    I Al Istannen

    @GravedigginSearchBar
    No problem :)

    It will probably break sometime in the future, when they decide to change the packet layout. Until then it should work, even across different versions. There sadly really is no API way.

    Have a nice day!
     
  10. Alright thanks man!!
     
  11. Offline

    Skrubzy

    When you take off one of the armor pieces, they all stay the same color. Could you make it so the armor reverts back to default leather?
     
  12. Offline

    I Al Istannen

    @Skrubzy
    There are many ways to lose your armor. I can probably cover clicking and death. If you remove a piece, should the whole armor turn back? This would make colored leather armor impossible (though it already kinda is, if it automatically discos around).

    I'll have a look and edit this post, if I change it.
     
  13. Offline

    Skrubzy

    Removing 1 piece (Or more) Would make all of the armor default. Right now, you have to be wearing a full set of leather armor for it to be disco-colored
     
  14. Offline

    I Al Istannen

    @Skrubzy
    I changed it, I think to what you want. Redownload from the same link. Either delete your config or add the key
    Code:
    # If this is true, the color will be removed once you remove the armor.
    remove-color-when-removed: true
     
  15. Offline

    Skrubzy

    It works in survival, but not creative. Could you possible add a required permission? So if they're wearing a full set of leather armor but don't have the correct permission, the armor won't change colors.
     
  16. Offline

    I Al Istannen

    @Skrubzy
    I toyed around for a while and creative inventory management is a mess. The client can do way too much.
    I am able to replace the armor, but replacing the cursor (the part you just picked up) seems to be outright impossible to do without introducing weird glitches.

    What is the problem with it not removing the color in creative though? You can do what you want anyways.

    I could add a permission.

    EDIT: Redownload. The new config key is:
    Code:
    # The permission. People without this permission will wear boring normal armor
    permission: "disco-armor.disco"
    Leave blank for none.
     
    Last edited: Feb 9, 2017
  17. Offline

    Skrubzy

    <3 The creative issue isn't a big deal, I'm the only one who has access to "/gm 1" anyways
     
  18. Offline

    Skrubzy

    I just found an issue with the plugin; With the disco armor equipped and changing, the armor appears at the top right of any chest you open. Also, and I haven't tested this yet, but I don't think it would work if you enchant the armor.
     
Thread Status:
Not open for further replies.

Share This Page