Skip to content

Adding VoteSites

Ben edited this page Oct 17, 2016 · 35 revisions

See the default here

Create VoteSite:

  • Vote on website, will cause file to be autocreated and disabled by default - SiteName will be the service site by default)
  • Create site manually, take a look at the VoteSites.yml
  • Create ingame, /av gui (Middle click votesites)

Configuration:

  • List what reward files you want to give as a reward (Define rewards in the reward files)

  • Enabled the votesite and your all good to go

  • VoteDelay is how often you can vote, this won't prevent votes but is used for stuff like /vnext

  • VoteURL - URL in /vote or GUI's

    VoteSites: # VoteSite name ExampleVoteSite: # Enable voteSite # If false, votesite will not be loaded by plugin # Default: false Enabled: false

      # Priority of this site
      # Used for sorted list
      # High prority, higher on the list
      Priority: 5
            
      # The serviceName from the vote, has to be correct to work correctly
      # Gotten from voting on the site (will be in console/log)
      # Usually is the main part of the url(e.g. PlanetMinecraft.com)
      ServiceSite: 'PlanetMinecraft.com'
    
      # vote url for /vote
      # Format for this can be set in Format.yml
      # Do not include colors here
      VoteURL: 'link to vote URL here, used in /vote'
    
      # Time between votes in hours (used for /vote next)
      # Most sites are 24 hours
      VoteDelay: 24
    
      # List of reward files to give to voter
      Rewards:
      - 'ExampleReward'
            
      # This is not needed
      # Rewards to give once certain number of votes reached for this vote site
      # Rewards work similar to above
      Cumulative:
        # Number of votes required to give this reward
        Votes: 20
        # List of reward files   to give on cumulativereward
        Rewards:
        - 'ExampleReward'
    
Clone this wiki locally