BAVoteParty icon

BAVoteParty -----

Reward player voting with individual rewards and vote parties!




Made /BAVoteParty a command on its own that will send the user a message thats configured in the config. The idea for the command was to give a place within the plugin to display the links for the voting sites. The new permission for this command is bavoteparty.message.

This will require you to regen your config. I have provided a copy of the new default config below with the new addition marked if you want to try to copy it yourself to avoid having to redo your file.

The alias /vote was also added.

Code (YAML):
#
#    BAVoteParty
#    Support: Join the discord discord.gg/8MyFQWS
#
####################################################
# Set to the name of the file without the extension.
# If you translate the entire document please send it to me, so I can add it for others to use easier.
Lang
: lang_en
VoteParty
:
  Enabled
: true
  Broadcast
:
    Enabled
: true
    Message
:
     - ''
      - 'This is the first non empty line'
      - 'This is the second line. We reached 50 votes!'
      - ''
  PartyNumber
: 50
  CurrentVotes
: 0
  # These commands will loop through all players online and replace {player} with their name
  RewardCommands
:
   - 'eco give {player } 1000'
IndividualVote
:
  Enabled
: true
  AnonymousVoterName
: "Anonymous"
  # The chance numbers do not have to add up to 100. If you have 2 with 0.9 chance (90%) and they both pass the bottom most reward on the list will be given.
  Rewards
:
    # A default is required
    default
:
      # There are a few prefixes to help with commands. They must be placed at the start of the command
      # [broadcast] - Will send a broadcast to the server
      # [message] - Will send a message to the player who voted
      # [console] - Will execute the command with console powers
      # Placeholders
      # {player} - Will be replaced with the name entered on the voting website.
      # {website} - Will be replaced with the URL of the website the user voted from.
      Commands
:
       - ' [broadcast ] {player } has voted at {website }!'
        - ' [message ] Thank you {player } for voting!'
    low
:
      # The % chance of this reward being given in decimal format
      Chance
: 0.5
      Commands
:
       - ' [broadcast ] {player } has voted at {website } and got lucky!'
        - ' [message ] {player } you got lucky!'
        - ' [console ] eco give {player } 100000'
#
# THIS IS THE NEW SECTION IT STARTS HERE
#
# This message will be displayed when the base command is run. It was designed to be used to give a list of the voting links.
VoteMessage
:
 - 'You can vote at these websites!'
  - 'link one'
  - 'link two'
  - 'link three'
#
# AND ENDS HERE
#
Debug
: false
----------, Apr 2, 2024

This is a complete rewrite of the plugin. See the main page for all the details. Rewrite includes updating to support newer spigot version, new commands, placeholder function reworks, and more.
----------, Mar 26, 2024

Per user request updated to support minecraft version 1.16.5
----------, Dec 18, 2021

Resolved a minor error when generation the default files.
----------, Feb 8, 2020

This update allows for you to use this plugin to give individual rewards for a single vote as well as a vote party once the vote party number is reached.

You should download a backup of your current files, delete them from your server, and then allow the plugin to regenerate the new files.

The new default config is below.
Code (Text):
#
#    BAVoteParty
#
####################################################
# What language file should be used?
Lang: lang_en
VoteParty:
  SendBroadcast: true
  PartyNumber: 50
  CurrentVotes: 0
  RewardCommands:
    - 'bc YAY VOTES REACHED'
VotePoints:
  PerVote: 1
Votes:
  # A default is required.
  default:
    # Command Help
    # '>' - Means run command as player.
    # '!' - Means run command as console.
    # ':' - Means send message to player purchasing
    # '^' - Means broadcast message
    # %player% - Will be replaced with the players name whos clicking
    Commands:
      - '!bc %player% have voted!'
  low:
    Commands:
      - '!say %player% got lucky!'
    # Chance this will run.
    Chance: 50
Debug: false

There's also some backend stuff that's in preparation for the next update.
----------, Dec 30, 2019

I have added /BAVoteParty add <Integer> - Which will increase your current vote count by the integer given.

I have added a language file so that you may change the messages. If you translate the entire language file please send it to me on discord so that I can add it to the plugin.

Changes have been made to the config file as well. Please download a copy of your current config file and delete the one from your server so that it can regenerate with the new changes.
----------, Oct 15, 2019

A user reported an error with the config being reset to default on reload. Has been resolved.
----------, Sep 27, 2019

This was mainly just cleaning up the code as I wrote this awhile ago. I also added an update checker so that you get an alert when a new version is release.

This update will require you to update the PAPI expansion as well.
----------, Sep 17, 2019

Resource Information
Author:
----------
Total Downloads: 516
First Release: Sep 16, 2019
Last Update: Apr 2, 2024
Category: ---------------
All-Time Rating:
3 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings