VotingKeys

Discussion in 'Archived: Plugin Requests' started by Jduffygames, Aug 25, 2014.

  1. Offline

    Jduffygames

    Plugin category: Fun

    Suggested name: VotingKeys

    What I want:
    Id like this plugin to have voting keys, The keys would be trip wire hooks named: &a&lVoting &eCrate Key. With the lore: &eClick the &a&lVoting Crate &eto use this key.
    The crate is a chest that you would do /votecrate setcrate
    When someone clicks the chest it would run a command (Us %s for player name)
    So like in the config it would be like this:
    Config:
    'Chance of happening'
    Command: 'give %s'
    Name: '&b&lName supports color codes'

    The message that would be displayed would be: &aYou have successfully opened the &a&lVote Crate and received <name in config>

    when they click the crate it will take 1 key from there inventory!

    Ideas for commands: votecrate givekey <name> amount - that would give people vote crate keys

    Ideas for permissions: votecrate.givekey - /votecrate givekey
    votecrate.setcrate - /votecrate setcrate

    When I'd like it by: When ever possible!
    Got any questions comment below!
     
  2. Offline

    Jduffygames

  3. Offline

    gdude2002

    Jduffygames

    Please don't just bump, you'll end up getting your post removed.

    I actually quite like your ideas for this plugin; I've decided to actually create a full plugin based around it. It might take a couple days to get to a workable stage, but I'll try to keep you informed and I'll link my BukkitDev page when it's done!
     
  4. Offline

    Jduffygames

    Thanks a lot :D!
     
  5. Offline

    gdude2002

    Small update: Code repository and a better description of what I'm doing is here
     
  6. Offline

    Jduffygames

    Cool
     
  7. Offline

    Dinosaurs

    Hi Jduffygames, my plugin has this in alpha version but it sounds like what you want. If you wish, check it out
    - Dinosawrs
     
  8. Offline

    Jduffygames

    Not exactly what i'm looking for but I am going to use it :) for other things :)

    Found a bug, If you do it in a protected zone you can spam do it now all my players have 100s of diamond blocks

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

    Dinosaurs

    Can you pm me more regarding to this issue? I have tested it with no region protection and it works perfectly. I apologize for the damage it has caused though.
     
  10. Offline

    gdude2002

    Dinosaurs Not really in the best of interests to jump in on someone else's thread, hmm? One might be compelled to think that you're deliberately stonewalling me.

    Nonetheless, my plugin is significantly different, so I'll continue development on it.
     
  11. Offline

    Dinosaurs

    gdude2002
    Hello gdude, I wouldn't necessarily call this "your" thread, but I do apologize for "attempting to steal your thread". In my defense, in no form or way was I stonewalling you, I was simply offering an suggestion to the OP. You are free to do whatever you want, and I did not state in any form or way that you are not allowed to create your plugin and notify him about it. I might as well say that one is compelled to say you are stonewalling me, as you are discouraging me to speak of my plugin.

    - Dinosaurs
     
  12. Offline

    gdude2002

    It just feels counterproductive, but I'm always impressed at how cutthroat the Bukkit development community has become since it started all those years ago..
     
  13. Offline

    JordyPwner

    Jduffygames maybe mysterycrates? look at one of my threads
     
  14. Offline

    Dinosaurs

    gdude2002
    Excuse me, I do hope you are trolling. It is amazing how I am being victimized here, being accusing of stonewalling when in no case did I try to hinder your progress, and being called an cutthroat when I defend myself as the victim.
     
  15. Offline

    iStyleFusion

    This is something i would like on my server. Keep me updated! And Dinosaurs your key is all messed up!

    Im not sure what the commands are?

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

    gdude2002

    Haven't gotten that far yet, I've been working on making the data storage as robust as possible. I'll be attempting commands and event handlers today.

    I didn't accuse you of stonewalling, I said that it would be understandable if someone thought that was related - it's extremely frustrating to begin development on a plugin for someone, just to have someone read the thread, and go "Hey, screw that guy, use my plugin instead". That's what I meant by cutthroat - everyone seems to be advertising their own plugins instead of leaving people to do what they're doing.
     
  17. Offline

    Jduffygames

    Just STOP
     
  18. Offline

    gdude2002

    Okay.

    Just got the box/crate creation command done, I'll do the other ones and then all that's left to do are the keys and the actual crate/box opening.

    Would there be any problems for you if the keys were checked using lore on the item itself?
     
  19. Offline

    Jduffygames

    Not a problem!
     
    gdude2002 likes this.
  20. Offline

    JordyPwner

  21. Offline

    Jduffygames

    You don't have to post it again :p
     
    gdude2002 likes this.
  22. Offline

    iStyleFusion

    Would i be allowed to use this plugin as well?
     
  23. Offline

    Jduffygames

    Of course.
     
  24. Offline

    gdude2002

    EDIT: Formatted.

    Yep, as stated in earlier posts, the plugin is fully open source under the Artistic License 2.0 and I'll be releasing it on BukkitDev when it's done.

    Got some travelling to do today, but I hope to get the last box/crate command in and get keys done. Right now, we have the following completely done.

    • Box storage - Boxes and their contents are serialised to a JSON file using the fantastic gson library.
    • /mkbox <name> [world] [x] [y] [x] - Assign a chest as a box. Location is optional, you can simply look at the chest.
    • /rmbox <name> - Remove a named box.
    • /lsbox [name] ["rewards"] - Show all boxes, info on a specific box or the list of rewards for a box.
    • /chbox <operation> [name] [params] - Edit a box's settings, including modifying rewards

    Boxes have the following properties..

    • named_keys - Boxes can require use of a named key, or simply work with any key
    • infinite/uses - Boxes can dispense rewards infinitely or only a certain number of times. The number doesn't go down if a reward isn't gained.
    • chance - This is the chance to receive a reward. You have a one in (chance) chance to get something. Keys are used up, even if you fail this chance.
    • location - Boxes are aware of their location
    • rewards - Boxes can have item, command or money (with vault) rewards. Each reward also has its own relative chance, which is used to decide what reward is given should the player pass the chance for the box itself.

    There's probably some more stuff that I've forgotten, I'll post later if I find something.

    Some stuff that isn't done yet, that's coming..

    • /chbox - A command that will allow you to change box settings, edit rewards, etc.
    • Keys - Spawnable onto any item by staff, I'll also be allowing them to generate in dungeon and village chests, as defined in the configuration. There will be generic and named keys.
    • Configurable messages support - So that every message in the plugin can be customised to suit your chat format, including colours.
    • Support for various plugins - I'm hoping to add optional support for Prism, Painter (my plugin), HolographicDisplays, and WorldGuard, if I have time. Are there any other plugins that would be useful to support for this?

    If there are any other ideas, feel free to list them.
     
  25. Offline

    gdude2002

    Okay, this plugin is now functional, for the most part. There are two three four things left for me to do.
    • Money rewards (item and command rewards work fine)
    • Custom messages (or, well, messages that aren't purely white)
    • BukkitDev page
    • Redo the commands so they're not so.. User-unfriendly.
    A few pointers, if people want to test..
    • For permissions, look at the plugin.yml until they're documented. You can find the standard command reference there as well.
    • You can't break a chest normally without removing it via commands first.
     
  26. Offline

    Jduffygames

    You don't need to add money rewards, we can just use /eco give command.
    I would like custom prefixes if possible.
    Thanks :)!
     
    gdude2002 likes this.
  27. Offline

    Jduffygames

    Is it done....?
     
  28. Offline

    gdude2002


    For the most part, yeah. I've done message prefixes as well, and there's a BukkitDev page (with no releases yet as I want to completely finish it first), and about half of the configurable messages are done as well. It should be fully functional, really, just a few of the messages aren't fully configurable yet.

    Economy support is done, too, but I haven't had a chance to test it yet - you'll need Vault if you want to use it directly.
     
  29. Offline

    Jduffygames

    okay
     
  30. Offline

    gdude2002

    EDIT: Alright, it should be pretty much done. I've submitted a file to BukkitDev, but as the approval queue is locked right now, you'd be better off just grabbing the latest build from the build server. You'll find that linked on the aforementioned BukkitDev page, as well as the full documentation.
     

Share This Page