Skip to content

Adding VoteSites

Ben edited this page Jun 3, 2017 · 34 revisions

See the default here

Creating 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:

  • Define rewards

  • Enable 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'
    
      # Display name of voting site
      Name: 'ExampleVoteSite'
    
      # Time between votes in hours (used for /vote next)
      # Most sites are 24 hours
      VoteDelay: 24
    
      # Rewards
      # See: https://github.com/Ben12345rocks/AdvancedCore/wiki/Rewards
      Rewards:
      - 'ExampleReward'
    
Clone this wiki locally