Per World Vote Listener

Discussion in 'Archived: Plugin Requests' started by KosmosPvP, Jun 18, 2014.

  1. Offline

    KosmosPvP

    Like the name says, it allows players to vote per world. Syncs in with Votifier and Multiverse. If you vote in world "world1", you get a reward specified for that and if you vote in world "world2" you get that specified reward. Commands should be like /vote No Permissions really needed! Thanks :D
     
  2. Offline

    The Fancy Whale

    I don't believe that will work because votifier is made to be one vote for server.
     
  3. Offline

    KosmosPvP

    Can someone make a plugin similar to votifier then? Except making for all servers? But has the necessities above

    The Fancy Whale

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

    JungleSociety

    KosmosPvP
    The use of votifier is required to get voting information from the website to the server. Votifier is the only plugin that most server listing websites will use.
     
  5. Offline

    KosmosPvP

    JungleSociety

    I already know, I accidently put wrong jnfo, i meant a vote listener
     
  6. Offline

    JungleSociety

    KosmosPvP
    When you set up votifier on a server listing website, you can only vote for that servers IP. So when your voting it's counting for the ip not the world they voted in. You can't change the way the server listing sites work.

    Edit: Perhaps I didn't understand you the first time? Do you want it so that you can have a separate vote in each world? Or do you want it so when you vote, the plugin gets what world you are in and gives a reward corresponding to that world?
     
  7. Offline

    KosmosPvP

    JungleSociety

    In talking about when the players vote for the server, the plugin acts like a vote listener so that it gives rewards corresponding to the specific world. The plugin is just a listener. If you want to talk to me more about the plugin or interested about making it, just send me a personal message. I have a Skype.
     
  8. Offline

    JungleSociety

    KosmosPvP
    I see, thank you for clearing that up. I understand now. However I have no experience in the use of votifier listeners. Tomorrow I will look it up and see the basic structure of one, and see if I can do this.
     
  9. Offline

    KosmosPvP

    JungleSociety

    If you need anything, send me a conversation with your Skype name. Make it compatible with 1.7.9
     
  10. Offline

    KoolzSkillz

    Please tag me in this next post I would like to use this
     
  11. Offline

    mazentheamazin

    Votifier uses the Bukkit Event system, so, you would make this listener like this:
    Code:java
    1. @EventHandler
    2. public void onVote(VotifierEvent event) {
    3. Vote vote = event.getVote();
    4. String username = vote.getUsername();
    5.  
    6. //Do stuff with the vote
    7. }
     
  12. Offline

    KosmosPvP

    So is anyone going to attempt to make it? Thanks for the info mazentheamazin
     
  13. Offline

    KoolzSkillz

    Look I'm a pretty noo by core but I think I could give this a shot, I'm not sure how long it will take tho. Testing will be the hard part D:
     
  14. Offline

    KosmosPvP

    KoolzSkillz

    I can help you with that, just send me te file, make sure it's 1.7.9
     
  15. Offline

    KosmosPvP

  16. Offline

    SDDJ

    Wow, I had no idea it was so simple to do create a listener :O
     
  17. Offline

    AoH_Ruthless

    SDDJ
    I feel like you are being sarcastic but it pretty difficult to accurately convey tone through online filters. :p

    The Fancy Whale That is not true. In the VotifierEvent, check the world the player was in when voting.
     
  18. Offline

    The Fancy Whale

    But you can only vote once per website. It's not like you can vote for a world on planet minecraft. Then go to a different pmc page and vote for a different world
     
  19. Offline

    KosmosPvP

    The Fancy Whale
    However, even though it registers the vote, the plugin, Per World Vote Listener is suppose to give rewards corresponding to the multiverse world the player is in!

    AoH_Ruthless
    It looked like you knew how to make a vote listener. Can you make it? I'll send you a conversation with more facts if you planning to make.
     
  20. Offline

    KoolzSkillz

    Ok first I'm going to make the plugin for my server if it works I will add the configuration file and you can choose what worlds too add.
     
  21. Offline

    The Fancy Whale

    Oh I see what you mean. Also, this thread should be enough means for conversation. Messaging is unnecessary. May as well put all of the required info here.
     
  22. Offline

    KosmosPvP

    The Fancy Whale

    I meant with contact information, the required plugin information is already said. Configure rewards per world after a vote is made.
     
  23. Offline

    SDDJ

    Oh, sorry, I wasn't being sarcastic. I hadn't ever looked into the creation of votifier listeners, and I thought it was a bit more involved than that. Thanks for showing that it's pretty much nothing more difficult than using a single method :D
     
  24. Offline

    AoH_Ruthless

    SDDJ
    Yeah, I made it once for a client ... Configurable per world voting + lucky votes + GUI world selector when the voter was in a hub world
     
  25. Offline

    KosmosPvP

  26. Offline

    extended_clip

    Ill make this if you still need it. It wont be hard at all. Just tag me extended_clip and ill get started.

    Edit:

    After re reading your post. I am not fully sure what you want...

    Do you want a system where a player votes for the server, then can redeem that vote 1 time per world for rewards per world, or do you want it where when a player votes for the server, they are ONLY rewarded in the world they are in when they vote?

    Either way I can hook something up for you. My personal preference is a system where a player votes and can redeem that vote per world. Meaning if you have 3 worlds setup to give rewards, the player can use /vote redeem in each world and a configurable list of commands will be ran to reward the player for that vote. When they redeem in any world, they cannot redeem in that world again until they vote again. If they have not redeemed in other worlds, they still may redeem for the vote they already redeemed in other worlds.

    I hope you get what I am saying. I can get this done in no time if what i mentioned above will fill your request.
     
  27. Offline

    KosmosPvP

    extended_clip

    Yes, I do still need it, I'll send you a conversation with my Skype if you need anything
     
  28. Offline

    extended_clip

    We can keep the chatting here. I will start it now. Does the idea I said work for you?

    I started working on this about an hour ago. I have added tons of cool features so far! I should be done by tomorrow(today) a bit after I wake up!

    You can track the progress here - https://github.com/extendedclip/Wor...dVotes/src/me/clip/worldvotes/WorldVotes.java

    I forgot about it being 4th of july... I will finish this tonight after the bbqs and fireworks when I get home. Be patient I have something good in the works for this...

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

    KosmosPvP

    extended_clip

    I like the idea of /redeem vote while your in the certain world, are the rewards configurable? Like enchanted items?


    Edit: We can talk more on Skype, I'm not sure if you want to spam the post xD
     
  30. Offline

    extended_clip

    Yeah I decided u can set how many votes a player must have to get a certain reward. Also it takes the votes from players. When you vote you have 2 vote counts. Your total and available. When u vote it adds 1 vote to total and 1 vote to available. Then you may enter any world and spend that 1 vote by using /redeem in a world. It will take 1 vote from available and execute the reward commands you set for that world. You can also specify when a player gets x amount of total votes, they can unlock new rewards. Or if they earn a certain 0ermission in that world, they unlock a new reward to be given on top of the previous rewards issued for that world. Il actually going camping today but im gonna finish this probably tomorrow morning. Sry if my spelling sux im on my phone. Ill explain more when I get home though.
     

Share This Page