Hlasovanie na viacerých weboch

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
Uživatelský avatar
_Johny_
Příspěvky: 83
Registrován: 10 dub 2014, 21:18
Reputation: 0
Bydliště: Liptov

Hlasovanie na viacerých weboch

#1 Příspěvekod _Johny_ » 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.

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: []
82.208.17.42:27137

Uživatelský avatar
nejento
Příspěvky: 9686
Registrován: 28 lis 2011, 14:09
Reputation: 47
Kontaktovat uživatele:

Re: Hlasovanie na viacerých weboch

#2 Příspěvekod nejento » 04 pro 2020, 01:20

Stačí ti přidat znovu ten blok kódu daného jednoho hlasování a přepsat ServiceSite na jiný web. Mělo by to jít nastavit i globálně na všechny možné weby s hlasováním a nedělat mezi nimi tak rozdíly.
Obrázek

Obrázek Přidejte se ke komunitě zákazníků na FakaHeda.eu Discord! Poznejte nové lidi nebo vyřešte svůj technický problém živě: http://discord.fakaheda.eu/

Uživatelský avatar
_Johny_
Příspěvky: 83
Registrován: 10 dub 2014, 21:18
Reputation: 0
Bydliště: Liptov

Re: Hlasovanie na viacerých weboch

#3 Příspěvekod _Johny_ » 04 pro 2020, 12:07

No mám to nastavené takto ale aj tak funguje iba ten prvý web ostatné tri nič ani do konzole nič neodošle z webu pri tom je to tam dobre nastavené

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: true

    # Display name of voting site
    Name: '&6Czech-Craft.eu'

    # 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: 'czech-craft.eu'

    # 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: 'www.czech-craft.eu/server/slovak-minecraft-server/vote/?user={player}'

    # 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: 'PAPER'
      Amount: 1

    # Rewards to give
    # https://github.com/Ben12345rocks/AdvancedCore/wiki/Rewards
    Rewards:
      # Execute console commands
      Commands:
        Console:
        - 'eco give {player} 100'
        - 'give {player} diamond 1'
        - 'cc give physical vote 1 {player}'
        # Send player a message
      Messages:
        Player: '&6Ďakujeme za hlas'
  # Site 2 example
  Site2:
    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:
        Console:
        - 'eco give {player} 100'
        - 'give {player} diamond 1'
        - 'cc give physical vote 1 {player}'
      AdvancedPriority:
        Fallback:
          Messages:
            Player: ''
      Messages:
        Player: '&6Ďakujeme za hlas.'
  Site3:
    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:
        Console:
        - 'give {player} stick 12'
        - 'eco give {player} 10'
        - 'give {player} diamond 1'
        - 'cc give physical vote 1 {player}'
      AdvancedPriority:
        Fallback:
          Messages:
            Player: ''
      Messages:
        Player: '&6Ďakujeme za hlas.'
  Site4:
    Enabled: true
    Name: '&6MinecrafrServes.org'
    ServiceSite: 'minecraftservers.org'
    VoteURL: 'www.minecraftservers.org/vote/599926'
    VoteDelay: 24
    ForceOffline: true
    DisplayItem:
      Material: 'PAPER'
      Amount: 1
    Rewards:
      Commands:
        Console:
        - 'eco give {player} 100'
        - 'give {player} diamond 1'
        - 'cc give physical vote 1 {player}'
      AdvancedPriority:
        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: []
82.208.17.42:27137

Uživatelský avatar
_Johny_
Příspěvky: 83
Registrován: 10 dub 2014, 21:18
Reputation: 0
Bydliště: Liptov

Re: Hlasovanie na viacerých weboch

#4 Příspěvekod _Johny_ » 05 pro 2020, 23:54

Tak teda ako ?
82.208.17.42:27137


Zpět na „Minecraft, Tekkit“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 72 hostů