[Request] VoteShare - Voting Across Multiple Servers

Discussion in 'Archived: Plugin Requests' started by Jack_J12, Mar 17, 2014.

  1. Offline

    Jack_J12

    Plugin category: General

    Suggested name: VoteShare

    What I want: I would like a plugin that allows me to share votes across multiple servers, somewhat similar to the VoteSend plugin. If someone would please make a new plugin which has similar features & most of all, works on the latest Bukkit version, that would be great. I would really very much appreciate it.

    Ideas for commands:
    /VS Reload - Reloads the config.
    /VS Test - Sends a test vote.

    Ideas for permissions: No permissions.

    When I'd like it by: Whenever possible.
     
  2. Offline

    timtower Administrator Administrator Moderator

    Jack_J12 How do you want to share the votes? What will you do with the votes? Do you want to throw a vote event on every server when you get a vote?
     
    tylerthecreeper1 likes this.
  3. Offline

    Jack_J12

    Basically what I want to happen is when someone votes on a server, the votes get sent to all the servers, meaning they will receive all the voting rewards on all servers, no matter which server they vote on. What do you mean by what will I do with the votes?
     
  4. Offline

    timtower Administrator Administrator Moderator

    Jack_J12 Well before somebody makes this he needs to know what to make.
    In this case I probably just need to catch an event, send it to the other servers and rethrow it there.
    You will need an open port on the server that gets the votes though.
     
  5. Offline

    Jack_J12

    timtower Isn't the default Votifier port (8192) open?
     
  6. Offline

    timtower Administrator Administrator Moderator

    Yes, but I need a port open to be able to send messages to the other servers.
    I will try to explain:
    I need a way to communicate between the servers. I can only have one server listen to the Votifier event. If I would listen on every server to that event then I would create an infinite loop.

    So I need an additional port to send information on.

    The main server will receive a vote, it will throw an event, I catch the event, send a message to the other server that re-throw the event catched by the main server.
     
  7. Offline

    Jack_J12

    timtower What about 8192, 8193, 8194 & 8195?
     
  8. Offline

    timtower Administrator Administrator Moderator

    Port will be configurable in the config, but it needs one for sure. I really don't mind which one.
     
  9. Offline

    Jack_J12

    timtower Then 8192 I guess, seeing as how that's already open :p
     
  10. Offline

    timtower Administrator Administrator Moderator

    Can't double use a port though
     
  11. Offline

    Jack_J12

    timtower Then use 8193. That one is open.
     
  12. Offline

    timtower Administrator Administrator Moderator

    I am indeed making this, I know more than just the Bukkit API
     
  13. timtower Awesome. I tried using VoteSend and got errors the other day. I may have been doing something wrong, but whatever. I want to use yours when it's finished!
     
  14. Offline

    Onlineids

    Wouldn't this require online-mode=false?
     
  15. Offline

    timtower Administrator Administrator Moderator

    Why would it?
    Don't know VoteSend...
     
  16. Offline

    Onlineids

    Was assuming that he was using bungeecord or lilypad for multiple servers
     
  17. Onlineids Uhm.. :p I don't?

    It's possible to send votes to servers that aren't connected through a Bungee or LilyPad instance.
     
  18. Offline

    timtower Administrator Administrator Moderator

  19. timtower I'll test it in a few minutes!

    Also, explanation on setup? :p
     
  20. Offline

    timtower Administrator Administrator Moderator

    Main in main server, change port
    Listener on different servers, change port and IP to main server IP
     
    tylerthecreeper1 likes this.
  21. timtower thanks, you havent tested this yet?
     
  22. Offline

    timtower Administrator Administrator Moderator

    Don't have servers to test on
     
    tylerthecreeper1 likes this.
  23. Offline

    Onlineids

    timtower doesnt need test servers the plugins test themselves
     
    timtower likes this.
  24. Offline

    Jack_J12

    Thank you, I really appreciate it, I'll be testing it out shortly. When you said main server, do you mean the hub/lobby?
     
  25. Offline

    timtower Administrator Administrator Moderator

    The server where the votes go to when the players use a voting website
     
  26. Offline

    Jack_J12

    timtower Ahh okay, thank you very much.

    timtower The VoteResendListener doesn't generate a config file, is it not supposed to?

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

    timtower Administrator Administrator Moderator

    Didn't notice the error on startup?
    Jack_J12 tylerthecreeper1, Redownload the listener, fixed a big error
     
  28. Offline

    Jack_J12

    timtower Thanks, going to test it now.

    timtower I don't quite understand the config for the VoteResendMain, all is says is "port: 1234". Doesn't it need a public key & IP in order for it to work with Votifier?

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

    timtower Administrator Administrator Moderator

    I listen to events on the server, so I don't need a key. I also don't need an IP because you are looking at the host plugin.
    The other plugin has an IP that you need to fill in, that would be the IP of the host plugin.
     

Share This Page