Sueta

VoteParty free

3.3

An advanced VoteParty plugin

·Plugin

Thanks for 1100 downloads :)
This plugin depends on Votifier and ActionAPI.
If you are using Bukkit/CraftBukkit the effects won't work.

If you have found a Bug or have a feature request please report it there: https://bitbucket.org/stst99_/voteparty/issues. If you have a question please pm me on spigot


This is an advanced VoteParty plugin, witch offers conditions, own coded placeholders without any depend of an external PlaceholderAPI (will be installed automatically). The only depend is Votifier. It allows more advanced owners to use cool features like conditioned rewards. E.g. give somebody, who has not a lot of money some money. However you can use this plugin too if you have no clue about JavaScript. Moreower this plugin allows you to use most of MVdW plugins you have purchased for better party information displaying. Placeholders for MVdWPlaceholderAPI and PlaceholderAPI are too included. Finally it allows you to see/hear effects on various VoteParty events. The plugin can collect statistics in a mysql database and show them by placeholders. Syncing the vote amount through various server is too no problem if you have a mysql database. The main placeholder replacer is ActionAPI. This plugin will be automatically installed by the first load. If you have already installed it, it will not be touched. Please watch the ActionAPI plugin to get all recent placeholder updates. ( https://www.spigotmc.org/resources/actionapi.21879/)
For tutorials go over here: http://stst99.ddns.net/wordpress/index.php/2016/04/17/voteparty_free_tutorial/

  • /voteparty - This will show the player how many votes are left to start the party
  • /voteparty reload - This will reload the config
  • /voteparty start - This will force start a voteparty for all the online players
  • /voteparty parse <placeholder> - Gives you the replacement of this placeholder

voteparty.start:
  default: op
voteparty.parse:
  default: op
voteparty.reload:
  default: op

#========================
#VoteParty free config
#Author: stst99
#Spigot site: https://www.spigotmc.org/resources/voteparty-free.15246/
#========================

Settings:
  votes_needed: 30
  party_commands:
  #- '<command>;<probability in %>;<description>;<execute condition>'
  - 'fe grant {player} 5000;20;5000 $;{money}>=100'
  - 'fe grant {player} 400;50;400 $;{world}=="example_world"'
  - 'fe grant {player} 50;75;50 $;true'
  use_no_luck: true
  no_luck_command: 'fe grant {player} 5;100;5 $;true'
  #defines how often a player will be picked to get a reward
  #plus minus your playercount is recommended
  max_rewards: 200
  show_particles_to_every_player: true
  #defines the delay in seconds before the plugin begins with the party
  start_delay: 5
  #In this interval in ticks (ticks*20=seconds) commands will be executed
  command_delay: 10
  #Make sure you have installed a mvdw plugin and the MVdWPlaceholderAPI
  use_mvdwplaceholderapi: false
  external_plugins:
    actionbar:
      countdown_enabled: false
      countdown: 'vp_countdown'
      party_start_enabled: false
      party_start: 'vp_party'
      onvote_enabled: false
      onvote: 'vp_onvote'
    featherboard:
      countdown_enabled: false
      countdown: 'vp_countdown'
      party_start_enabled: false
      party_start: 'vp_party'
      onvote_enabled: false
      onvote: 'vp_onvote'
    titleadvanced:
      countdown_enabled: false
      countdown: 'vp_countdown'
      party_start_enabled: false
      party_start: 'vp_party'
      onvote_enabled: false
      onvote: 'vp_onvote'
    animatedtitle:
      countdown_enabled: false
      countdown: 'vp_countdown'
      party_start_enabled: false
      party_start: 'vp_party'
      onvote_enabled: false
      onvote: 'vp_onvote'
  sql:
    #Enables or disables the sql options
    enabled: false
    #This option allows you to use any SQL driver like mysql
    driver: 'com.mysql.jdbc.Driver'
    #For mysql: jdbc:mysql://<your_host>:[port]/<database_name>
    url: 'jdbc:mysql://localhost/VoteParty'
    username: 'root'
    password: '123'
    enable_stats_sync: false
    enable_votes_sync: false
  onvote:
    enabled: false
    commands:
    - 'minecraft:give {player} redstone 30;50;Redstone;{money}>=10'
Messages:
  #Don't use player specific placeholders in countdown_broadcast and on_party_start_broadcast
  no_luck: '&cYou have no luck'
  on_reward_got: '&aYou got {voteparty_free_command_description}'
  countdown_broadcast: '&7The VoteParty will start in {voteparty_free_countdown}'
  on_vote: '&7Thanks for your vote!'
  on_vote_broadcast: '&7{player} has voted for the server'
  on_party_start_broadcast: '&aThe party will start now!'
  config_reload: '&7Config reloaded!'
  force_start: 'You have force started the party'
  no_permission: '&cYou are not allowed to do that'
  voteparty_command: '&7There are {voteparty_free_votes_until_party} Votes left'
  unknown_argument: '&cUnknown argument'
  prefix: '&8[&aVoteParty&8] '
Database:
  total_votes: 0
Effect:
  onvote:
    enabled: false
    #all the effects: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Effect.html
    effect: PORTAL
    #y offset on the player, who gets the effect
    y_offset: 0
    particleCount: 100
    speed: 0
    radius: 4
  onparty_start:
    enabled: false
    effect: PORTAL
    y_offset: 0
    particleCount: 100
    speed: 0
    radius: 4
  onparty_end:
    enabled: false
    effect: PORTAL
    y_offset: 0
    particleCount: 100
    speed: 0
    radius: 4
  onreward:
    enabled: false
    effect: PORTAL
    y_offset: 0
    particleCount: 100
    speed: 0
    radius: 4
Firework:
  onvote:
    enabled: false
    detonate_color:
    #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Color.html
      ==: Color
      RED: 0
      BLUE: 255
      GREEN: 255
    fade_color:
    #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Color.html
      ==: Color
      RED: 0
      BLUE: 0
      GREEN: 128
    #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/FireworkEffect.Type.html
    type: BALL_LARGE
  onparty_start:
    enabled: false
    detonate_color:
      ==: Color
      RED: 0
      BLUE: 255
      GREEN: 255
    fade_color:
      ==: Color
      RED: 0
      BLUE: 0
      GREEN: 128
    type: BALL_LARGE
  onparty_end:
    enabled: false
    detonate_color:
      ==: Color
      RED: 0
      BLUE: 255
      GREEN: 255
    fade_color:
      ==: Color
      RED: 0
      BLUE: 0
      GREEN: 128
    type: BALL_LARGE
  onreward:
    enabled: false
    detonate_color:
      ==: Color
      RED: 0
      BLUE: 255
      GREEN: 255
    fade_color:
      ==: Color
      RED: 0
      BLUE: 0
      GREEN: 128
    type: BALL_LARGE


Q:The placeholders on my FeatherBoard(or any other MVdW Plugin) aren't working:
A:

  1. Stop your server
  2. Open VoteParty config and change use_mvdwplaceholderapi option to true
  3. Install MVdWPlaceholderAPI (https://www.spigotmc.org/resources/mvdwplaceholderapi.11182/)
  4. Make sure, that you have saved and installed everything.
  5. Start your server
  6. Make sure you use the following placeholders:
    VoteParty free:
       {voteparty_free_countdown}
       {voteparty_free_rewards_given}
       {voteparty_free_max_rewards}
       {voteparty_free_votes_until_party}
       {voteparty_free_total_votes}
       {voteparty_free_votes_needed}
       {voteparty_free_relative_votes}
       {voteparty_free_stat_votes}
       {voteparty_free_stat_party_reward}
       {voteparty_free_stat_onvote_reward}
       {voteparty_free_stat_no_luck_reward}
       {voteparty_free_stat_total_reward}

Q:My Placeholders for PlaceholderAPI aren't working:
A:Make sure you use the placeholders, witch are metioned before, just replace the brackets with %% e.g. :%voteparty_free_votes_until_party%

By downloading this plugin you agree to following:

  • You are not allowed to decompile this plugin
  • You are not allowed to edit this plugin
  • You are not allowed to claim the source/binary code of the plugin as your own
  • You are not allowed to resell this plugin

If you have questions/feature requests/bugs please pm me on Spigot.

Similar projects

Plugin →