Hlasovanie na viacerých weboch
Napsal: 01 pro 2020, 13:30
server: 82.208.17.42:27137
Ahojte potreboval by som poradiť ako si nastaviť na plugine VotingPlugin hlasovanie na viacerých weboch. V súbore VoteSites.yml mám nastavené tri stránky pre hlasovanie no funguje iba jedna tá prvá na stránke czech-craft a chcel by som pridať aj ostatné. Ak niečo bude ešte potreba tak to sem dám ale až večer.
Ahojte potreboval by som poradiť ako si nastaviť na plugine VotingPlugin hlasovanie na viacerých weboch. V súbore VoteSites.yml mám nastavené tri stránky pre hlasovanie no funguje iba jedna tá prvá na stránke czech-craft a chcel by som pridať aj ostatné. Ak niečo bude ešte potreba tak to sem dám ale až večer.
Kód: Vybrat vše
VoteSites:
# VoteSite key
# Used for saving data for votesites
# Use a short name if you can
Site1:
# Enable voteSite
# If false, votesite will not be loaded by plugin
# Default: false
Enabled: false
# Display name of voting site
Name: 'ExampleVoteSite'
# 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), 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: 'PlanetMinecraft.com'
# vote url for /vote
# Format for this can be set in Format.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: ''
# Time between votes in hours (used for /vote next)
# Most sites are 24 hours
VoteDelay: 2
# Use to have a minute votedelay
#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
# 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: true
# VoteSite Material for some GUI's
# Removing this may result in an error, required on each site
DisplayItem:
Material: 'DIAMOND'
Amount: 1
# Rewards to give
# https://github.com/Ben12345rocks/AdvancedCore/wiki/Rewards
Rewards:
# Execute console commands
Commands:
- 'say hello'
# Send player a message
Messages:
Player: 'Hlasoval si'
# Site 2 example
Site2:
Enabled: true
Name: '&6Czech-Craft.eu'
ServiceSite: 'czech-craft.eu'
VoteURL: 'www.czech-craft.eu/server/slovak-minecraft-server/vote/?user={player}'
VoteDelay: 2
ForceOffline: true
DisplayItem:
Material: 'PAPER'
Amount: 1
Rewards:
Commands:
- 'eco give {player} 100'
- 'give {player} diamond 1'
- 'cc give physical vote 1 {player}'
# Advanced example
# 50% chance for reward1, if reward1 not given then 20% chance to get reward2, if reward2 not given then fallback
AdvancedPriority:
# Similar to priority, but no need to have to use reward files
# Add requirements under each reward
# Will go in order from list here and try to run each of the following rewards...
# This name can be anything, but they need to be different
# Fallback, 100% chance, after other rewards fail chances
Fallback:
Messages:
Player: ''
Messages:
Player: '&6Ďakujeme za hlas.'
Site3:
Enabled: true
Name: '&6Craftlist.org'
ServiceSite: 'craftlist.org'
VoteURL: 'www.craftlist.org/slovak-minecraft-server?nickname={player}'
VoteDelay: 2
ForceOffline: true
DisplayItem:
Material: 'PAPER'
Amount: 1
Rewards:
Commands:
- 'give {player} stick 12'
- 'eco give {player} 10'
- 'give {player} diamond 1'
- 'cc give physical vote 1 {player}'
AdvancedPriority:
# Similar to priority, but no need to have to use reward files
# Add requirements under each reward
# Will go in order from list here and try to run each of the following rewards...
# This name can be anything, but they need to be different
# Fallback, 100% chance, after other rewards fail chances
Fallback:
Messages:
Player: ''
Messages:
Player: '&6Ďakujeme za hlas.'
Site4:
Enabled: true
Name: '&6Minecraftserver.sk'
ServiceSite: 'minecraftserver.sk'
VoteURL: 'www.minecraftserver.sk/server/slovak-minecraft-server-507/'
VoteDelay: 24
ForceOffline: true
DisplayItem:
Material: 'PAPER'
Amount: 1
Rewards:
Commands:
- 'eco give {player} 100'
- 'give {player} diamond 1'
- 'cc give physical vote 1 {player}'
# Advanced example
# 50% chance for reward1, if reward1 not given then 20% chance to get reward2, if reward2 not given then fallback
AdvancedPriority:
# Similar to priority, but no need to have to use reward files
# Add requirements under each reward
# Will go in order from list here and try to run each of the following rewards...
# This name can be anything, but they need to be different
# Fallback, 100% chance, after other rewards fail chances
Fallback:
Messages:
Player: ''
Messages:
Player: '&6Ďakujeme za hlas.'
# Reward for any site
# Similar to AnySiteReward
# This requires the site to be configured in order to get the reward.
EverySiteReward: []