This configuration is not final yet!!!
VoteParty 2 will allow you to create per world, per rank, and per permission based vote reward systems. This also allows for you to hook into every other voting plugin which tracks votes to give rewards based on how many votes a player has! There are many more new things coming for VoteParty 2 and this is just a sneak peek of the configuration I have been experimenting with...
Code (YAML):
check_updates
: true
votes_until_party
: 100
# will support all normal vote listener plugins that track player votes
vote_tracking_hook
: GAListener / UltimateVotes / SuperbVote / VoteRoulette / more later on
party
:
# delay in seconds until party starts when vote goal is reached
start_delay
: 10
# actions performed when vote goal is reached
# these actions are not specific to a certain player and are server wide
# actions:
# [command] execute command in console
# [broadcast] broadcast a message
# [broadcastjson] broadcast json message
# [geffect] play an effect for every player
# [gsound] play a sound for every player
global_reach_goal_actions
:
- '
[command
] say party starting in 10 seconds'
- '
[broadcastjson
]
{
"text":
"party starting soon!"
}'
reward_lists
:
# name of this list
vip
:
# since there can be multiple lists, each one needs a unique priority
priority
: 1
# worlds this list is available in
worlds
:
- world
- world_nether
# optional entry to require players have a permission node to access this list
# as we have multiple lists, this high priority list will require a permission to obtain
# rewards from it...
permission
: voteparty.rewards.vip
# here we have separate rewards inside of this vip list
lists
:
#we will call this "100votes because players will need at least 100 votes to obtain rewards here"
100votes
:
# the amount of votes vip players need to access these rewards
votes_needed
: 100
# actions to perform for players who are getting these rewards when the party starts
# the magical rewards
rewards
:
# every reward in this list needs a unique name
one
:
# all reward chances combined should equal 100.00
# the more amount of chance, the higher probability to get that reward
# if total amount of chance does not equal 100, there will be a chance to not get anything
chance
: 50
# actions to perform for reward "one"
actions
:
- '
[command
] eco give @p 1000'
- '
[command
] give @p diamond 64'
two:
chance
: 20
actions
:
- '
[command
] eco give @p 10000'
- '
[command
] give @p diamond 128'
three:
chance
: 30
actions
:
- '
[command
] eco give @p 12500'
50votes:
votes_needed
: 50
start_actions
:
- '
[command
] give @p 50'
- '
[message
] you get rewards from a special list for voting over 50 times!'
- '
[effect
] helix'
stop_actions
:
- '
[message
] The party is now over :
)'
max_rewards
: 2
rewards:
one:
chance
: 50
actions
:
- '
[command
] eco give @p 500'
- '
[command
] give @p diamond 32'
two:
chance
: 20
actions
:
- '
[command
] eco give @p 5000'
- '
[command
] give @p diamond 64'
three:
chance
: 30
actions
:
- '
[command
] eco give @p 6250'
1vote:
votes_needed
: 1
start_actions
:
- '
[command
] give @p 50'
- '
[message
] You get normal rewards!'
- '
[effect
] helix'
stop_actions
:
- '
[message
] The party is now over :
)'
max_rewards
: 1
rewards:
one:
chance
: 100.0
actions
:
- '
[command
] eco give @p 500'
normal:
priority
: 2
lists:
100votes:
votes_needed
: 100
start_actions
:
- '
[command
] give @p 100'
- '
[message
] you get rewards from a special list for voting over 100 times!'
- '
[effect
] helix'
end_actions
:
- '
[message
] The party is now over :
)'
max_rewards
: 3
allow_duplicate_rewards
: false
rewards:
one:
chance
: 50
actions
:
- '
[command
] eco give @p 1000'
- '
[command
] give @p diamond 64'
two:
chance
: 20
actions
:
- '
[command
] eco give @p 10000'
- '
[command
] give @p diamond 128'
three:
chance
: 30
actions
:
- '
[command
] eco give @p 12500'
50votes:
votes_needed
: 50
start_actions
:
- '
[command
] give @p 50'
- '
[message
] you get rewards from a special list for voting over 50 times!'
- '
[effect
] helix'
stop_actions
:
- '
[message
] The party is now over :
)'
max_rewards
: 2
rewards:
one:
chance
: 50
actions
:
- '
[command
] eco give @p 500'
- '
[command
] give @p diamond 32'
two:
chance
: 20
actions
:
- '
[command
] eco give @p 5000'
- '
[command
] give @p diamond 64'
three:
chance
: 30
actions
:
- '
[command
] eco give @p 6250'
1vote:
votes_needed
: 1
start_actions
:
- '
[command
] give @p 50'
- '
[message
] You get normal rewards!'
- '
[effect
] helix'
stop_actions
:
- '
[message
] The party is now over :
)'
max_rewards
: 1
rewards:
one:
chance
: 100.0
actions
:
- '
[command
] eco give @p 500'