Voting Links

Step-by-step to modify your VotingLinks.yml

1. Open your Notepad++ First.

Notepad++ Application

2. Open the file Menu Config.

File Location:

plugins\VotingPlugin\VoteSites.yml

plugins\VotingPlugin\Config.yml

First open these 2 specified Files.

3. Send a Test Votifier First.

After opening the 2 .YAML file, head over to CONFIG.YML.

Head over to the line of "630" & change the value of AutoCreateVoteSites: false to AutoCreateVoteSites: true

3.1 After the Modification Above, Head over to a Test Votifier Websites.

The Website that I'm using is called Crafty!

Fill out all the information required/needed to send a voting prompt test to your Server.

3.2 Head over to VotingSites.yml.

After completing the step 3.1, now go back to your VotingSites.yml

VoteSites:
  # VoteSite key
  # Used for saving data for votesites
  # Use a short name if you can
  # No spaces or dots
  crafty_gg:
    # Enable voteSite
    # If false, votesite will not be loaded by plugin
    # Default: false
    Enabled: true
    
    # Display name of voting site
    Name: 'Crafty.gg'
          
    # Priority of this site
    # Used for sorted list
    # High prority, higher on the list
    Priority: 1
    
    # If true, voteside will be hidden from some GUI's, similar to being disabled
    Hidden: false
          
    # 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), but not always
    # See console when you vote (it will notify you if the plugin didn't find a votingsite matching the service site
    ServiceSite: 'https://crafty.gg'

    # vote url for /vote
    # Format for this can be set in Config.yml
    # Do not include colors here
    # If you need to force a url set the url as this:
    # VoteURL: '[Text="ANY TEXT TO CLICK ON HERE",url="URLHERE"]'
    VoteURL: 'https://crafty.gg/tools/votifier'

    # Time between votes in hours (used for /vote next)
    # Most sites are 24 hours
    VoteDelay: 24
    
    # Use to have a minute votedelay
    # Must set a value on VoteDelay if you plan on only using this setting
    #VoteDelayMin: 30
    
    # Require waiting until votedelay time has pasted in order to accept vote
    # Recommend: false
    WaitUntilVoteDelay: false
    
    # Reset vote delay each day (for certain sites that do this)
    # Recommend: false
    VoteDelayDaily: false
    
    # Replaces offset, set the exact hour based on server time
    # Include server time offset when setting this
    # 2 = 2 am server time
    # Use 1-24
    #VoteDelayDailyHour: 14
    
    # If true, rewards can be executed offline (requires ForceOffline to be true in the reward)
    # Setting this to true will execute the reward offline while the player is offline
    # This basiclly disables offline voting if set to true, don't misinterpret this option
    ForceOffline: false
    
    # Requrie a permission to view site in GUI
    # If empty or not set anyone can view (default)
    #PermissionToView: 'Perm.here'
    
    # VoteSite Material for some GUI's
    # Removing this may result in an error, required on each site
    DisplayItem:
      Material: 'DIAMOND'
      Amount: 1
      
    # Reward to run when cooldown ends for this votesite
    # Enable PerSiteCoolDownEvents in Config.yml to use this
    #CoolDownEndRewards:
    #  Messages:
    #    Player: '&aTime to go vote on site1'

    # Rewards to give
    # https://github.com/BenCodez/AdvancedCore/wiki/Rewards
    Rewards:
      # Execute console commands
      Commands:
      - 'say hello'
      # Send player a message
      Messages:
        Player: 'You voted'

Which for craft.gg it's called crafty_gg.

If you have between 3 and 10 vote sites, please send a Test Votifier first to obtain the exact Website_ID. Once you’ve received or verified the correct value, you may proceed with the configuration.

4. Modifying the Rewards.

    # Reward to run when cooldown ends for this votesite
    # Enable PerSiteCoolDownEvents in Config.yml to use this
    #CoolDownEndRewards:
    #  Messages:
    #    Player: '&aTime to go vote on site1'

    # Rewards to give
    # https://github.com/BenCodez/AdvancedCore/wiki/Rewards
    Rewards:
      # Execute console commands
      Commands:
      - 'give %player% DIAMOND 1'
      - 'msg %player% Thanks for voting!'
      - 'eco give %player% 500'
      # Send player a message
      Messages:
        Player: 'You voted'

Last updated