Problem/Bug GAListener | /Vote | Malfunction

Discussion in 'Plugin Help/Development/Requests' started by Hirroshii, Jul 11, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Hirroshii

    Help! I downloaded both Votifier and GAL, they both worked at first. But when I set up my GAL Config YML, it broke and the /vote command stopped working. Would anyone kindly please help me with my issue?

    CONFIG of GAL:
    # GAListener v1.3.2
    # http://www.minecraft-index.com

    # settings section

    # onlineonly - Only delivers rewards when the player is online. If they are offline it will wait and deliver when they next join the server!
    # luckyvote - Enables the lucky voting section, this allows voters to have a random chance to receive additional rewards when they vote.
    # permvote - Enables the permission voting section, this allows voters to receive different rewards based upon their permissions.
    # cumulative - Enables the cumulative voting section, this allows voters to receive rewards once they have reached a certain number of votes.
    # broadcastqueue - Show broadcast message for queued votes.
    # broadcastoffline - Show broadcast message for offline queued votes.
    # broadcastrecent - Show broadcast message to recent voters (last 24 hours)
    # votecommand - Enables the /vote command which will show the message contained in the votemessage section at the bottom of the config.
    # rewardcommand - Enables the /rewards command which will show a list of all the cumulative voting rewards.
    # joinmessage - Show the message contained in the joinmessage section at the bottom of this config when a player joins the server.
    # voteremind - Message players who haven't voted in the last 24 hours. Shows the message contained in the remindmessage section at the bottom of this config.
    # remindseconds - How often (in seconds) between each reminder message.
    # ratelimit - Ignore votes received within this many seconds since the last vote for the same player on the same site. This should prevent duplicate votes.
    # logfile - Log received votes to vote.log file.
    # dbMode - Database mode. Use either mysql or sqlite.
    # dbFile - Database filename for SQLite.
    # dbHost - Database IP / Hostname for MySQL.
    # dbPort - Database port for MySQL.
    # dbUser - Database username for MySQL.
    # dbPass - Database password for MySQL.
    # dbName - Database name for MySQL.
    # dbPrefix - Database table prefix.

    settings:
    onlineonly: true
    luckyvote: true
    permvote: true
    cumulative: true
    broadcastqueue: true
    broadcastrecent: true
    broadcastoffline: false
    votecommand: true
    rewardcommand: false
    joinmessage: true
    voteremind: false
    remindseconds: 300
    ratelimit: 10
    logfile: false
    dbMode: 'sqlite'
    dbFile: 'GAL.db'
    dbHost: 'localhost'
    dbPort: 3306
    dbUser: 'root'
    dbPass: ''
    dbName: 'GAL'
    dbPrefix: ''

    # services section (default is used if service doesn't exist)
    # The example below would give 5 diamonds per vote.

    services:
    Minecraft-Server-List:
    broadcast: '{YELLOW}A{LIGHT_GREEN}F {YELLOW}{BOLD}>> {LIGHT_PURPLE}{username} {GREEN}has voted @ {LIGHT_PURPLE}{service} {GREEN}and received {AQUA}rewards{GREEN}!'
    playermessage: '{GREEN}Thanks for voting at {LIGHT_PURPLE}{service}{GREEN}!'
    commands:
    - '/case give {username} Thanks for voting! |'
    Minecraft-Server:
    broadcast: '{YELLOW}A{LIGHT_GREEN}F {YELLOW}{BOLD}>> {LIGHT_PURPLE}{username} {GREEN}has voted @ {LIGHT_PURPLE}{service} {GREEN}and received {AQUA}rewards{GREEN}!'
    playermessage: '{GREEN}Thanks for voting at {LIGHT_PURPLE}{service}{GREEN}!'
    commands:
    - '/case give {username} Thanks for voting! |'

    # luckyvotes section
    # The example below would give a 1 in 10 chance of a voter receiving an extra $1000, and a 1 in 50 chance of an extra $1000 and 100XP.

    luckyvotes:
    '10':
    broadcast: '{YELLOW}A{LIGHT_GREEN}F {YELLOW}{BOLD}>> {LIGHT_PURPLE}{username} {GREEN}was lucky @ {LIGHT_PURPLE}{service} {GREEN}and received {AQUA}$1000{GREEN}!'
    playermessage: '{GREEN}You were lucky and received an extra ${GOLD}1000{GREEN}!'
    commands:
    - '/eco give {username} 1000'
    '50':
    broadcast: {YELLOW}A{LIGHT_GREEN}F {YELLOW}{BOLD}>> {LIGHT_PURPLE}{username} {GREEN}was super lucky @ {LIGHT_PURPLE}{service} {GREEN}and received {AQUA}$2000 & 40 LEVELS{GREEN}!'
    playermessage: '{GREEN}You were lucky and received an extra ${GOLD}2000{AQUA}& 40 LEVELS{GREEN}!'
    commands:
    - '/xp give {username} 40L'
    - '/eco give {username} 2000'

    # permission reward section
    # This example would give players with the permission node "gal.double" 10 Diamonds instead of their regular reward.

    perms:
    double:
    broadcast:'{YELLOW}A{LIGHT_GREEN}F {YELLOW}{BOLD}>> {LIGHT_PURPLE}{username} {GREEN}has voted @ {LIGHT_PURPLE}{service} {GREEN}and received twice the{AQUA}rewards{GREEN}!'
    playermessage: '{GREEN}Thanks for voting at {LIGHT_PURPLE}{service}{GREEN} Doubler!'
    commands:
    - '/case give {username} Thanks for voting! |'
    - '/case give {username} Thanks for voting! |'

    # cumulative reward section
    # This example would give players 20 Diamonds once they have reached a total of 10 votes.

    cumulative:
    '6':
    broadcast: {YELLOW}A{LIGHT_GREEN}F {YELLOW}{BOLD}>> {LIGHT_PURPLE}{username} {GREEN}has voted 10 times @ {YELLOW}MCAF {GREEN}and received twice the{AQUA}rewards{GREEN}!'
    playermessage: '{GREEN}Thanks for voting {LIGHT_PURPLE}10 {GREEN}times!'
    commands:
    - '/case give {username} Thanks for voting! |'
    - '/case give {username} uncommon'

    # blocked - a list of worlds where rewards should be disabled, they will remain queued until the player is in an allowed world.

    blocked:
    - world_blocked

    # Available formatting codes for messages:

    # {service} {servicename} {SERVICE} = service name
    # {username} {player} {name} = player username
    # {votes} = current vote total
    # & = Colour Symbol to enter manual colours / control codes
    # {AQUA} {BLACK} {BLUE} {DARK_AQUA} {DARK_BLUE}
    # {DARK_GRAY} {DARK_GREEN} {DARK_PURPLE} {DARK_RED} {GOLD}
    # {GRAY} {GREEN} {LIGHT_PURPLE} {RED} {WHITE} {YELLOW} {BOLD}
    # {ITALIC} {UNDERLINE} {STRIKETHROUGH} {STRIKE}
    # {STRIKETHROUGH} {MAGIC} {RESET}

    votemessage:
    - '{GOLD}-----------------------------------------------------'
    - '{LIGHT_PURPLE}http://minecraft-server-list.com/server/356683/vote/'
    - ' {AQUA}------------------------+------------------------'
    - '{LIGHT_PURPLE}http://minecraft-server.net/index.php?a=in&u=AtomicFaction'
    - '{GOLD}-----------------------------------------------------'
    - '{AQUA}You currently have {LIGHT_PURPLE}{votes} {AQUA}Votes'

    remindmessage:
    - '{GOLD}-----------------------------------------------------'
    - 'You have not voted recently, please vote to support the server'
    - '{GOLD}-----------------------------------------------------'
    - '{AQUA}You currently have {LIGHT_PURPLE}{votes} {AQUA}Votes'

    joinmessage:
    - '{GOLD}-----------------------------------------------------'
    - 'Vote for us every day for in game rewards and extras'
    - '{GOLD}-----------------------------------------------------'
    - '{AQUA}You currently have {LIGHT_PURPLE}{votes} {AQUA}Votes'

    # Additional formatting codes for below:

    # {TOTAL} = vote total - used for /rewards
    # {REWARD} = current rewardmessage as specified in the cumulative reward section - used for /rewards
    # {POSITION} = current rank - used for /votetop
    # {username} = player name - used for /votetop

    rewardformat: '{GREEN}{TOTAL} Votes {GRAY}- {AQUA}{REWARD}'
    votetopformat: '{POSITION}. {GREEN}{username} - {WHITE}{TOTAL}'
    rewardheader:
    - '{GOLD}---------------- {WHITE}[ {DARK_AQUA}Rewards{WHITE} ] {GOLD}----------------'
    votetopheader:
    - '{GOLD}---------------- {WHITE}[ {DARK_AQUA}Top Voters{WHITE} ] {GOLD}----------------'
    rewardfooter:
    - '{AQUA}You currently have {LIGHT_PURPLE}{votes} {AQUA}Votes'
     
  2. Offline

    OTF Catastrophe

    Few things I should tell you before I put the link to the fixed file:

    • Always put your files in a pastebin and link it in your post instead of just pasting the config in your post.
    • Please make sure you always use an online YAML parser for all your .yml files before making a thread as your issue will almost always be an issue with parsing.
    • Your issue was indeed an issue with one occurrence of parsing issues and two occurrences of melformed strings(Which means you basically forgot to start and finish off some messages with ' & ' in your config.)
    Here's your finished file: http://pastebin.com/8JAt4tpp

    Let me know if everything worked out! :D
     
  3. Offline

    Hirroshii

    Thank you so much! You are such a helpful guy! I hope you can help me with other problems in the future! And next time, I will put it in a pastebin.
    Oh and um... it works, but then the rewards isn't working. Do you know why? Please help me get back to me soon!

     
  4. Offline

    OTF Catastrophe

    Interesting text choice aha, what plugin are you using for crates(cases)? Your command section for the file looks a little weird.
     
Thread Status:
Not open for further replies.

Share This Page