Solved GAL Config

Discussion in 'Plugin Help/Development/Requests' started by TheMinecraftKnight, Oct 3, 2015.

Thread Status:
Not open for further replies.
  1. Help me please! I changed my GAL config and now it's not working! I've tried loads of YAML checkers and none help! Pastebin Config:
    http://pastebin.com/fax8rbc9

    Thank you! Alex :)
     
  2. Offline

    mc_myster

    Here, i fixed the config for you, i don't exactly know what was wrong but i fixed it :)
    Code:
    settings:
      onlineonly: true
      luckyvote: true
      permvote: true
      cumulative: true
      broadcastqueue: true
      broadcastrecent: true
      broadcastoffline: false
      votecommand: true
      rewardcommand: true
      joinmessage: true
      voteremind: true
      remindseconds: 300
      ratelimit: 10
      logfile: false
      dbMode: sqlite
      dbFile: GAL.db
      dbHost:
      dbPort:
      dbUser:
      dbPass: ''
      dbName: GAL
      dbPrefix: ''
    services:
      default:
        broadcast: '{GREEN}{username} {GOLD}has voted at {GREEN}{service} {GOLD}and received {GREEN}5 Diamonds{GOLD} and {GREEN}$1500!'
        playermessage: '{GREEN}Thanks for voting! {GOLD}Remember you can vote once a day!!'
        commands:
          - '/give {username} 264 5'
          - '/eco give {username} 1500'
    luckyvotes:
      20:
        broadcast: '{GREEN}{username} {GOLD}was lucky and received an extra $1000 and 10 Diamonds! '
        playermessage: '{GREEN}You were lucky and received an extra $1000 and 10 Diamonds!'
        commands:
          - '/eco give {username} 1000'
          - '/give {username} diamond 10 name:&6&oVote_Diamond'
      500:
        broadcast: '{GREEN}{username} {GOLD}was super lucky and received an extra 1000 XP and $10000!'
        playermessage: '{GOLD}You were super lucky and received an extra 1000 XP and $10000!'
        commands:
          - '/xp give {username} 1000'
          - '/eco give {username} 10000'
    perms:
      double:
        broadcast: '{DARK_GREEN}{username}{GOLD} is a donor and has voted at {GREEN}{service} {GOLD}and received an extra {DARK_RED}30K {GOLD}and {DARK_RED}10 Diamonds!'
        playermessage: '{GREEN}Thanks for voting! {GOLD}Remember you can vote every day!!'
        command:
          - '/give {username} 264 10'
          - '/eco give {username} 30000'
    cumulative:
      10:
        broadcast: '{GREEN}{username} {GOLD}has voted a total of {YELLOW}10 times {GOLD}and received {GREEN}20 Diamonds!'
        playermessage: '{GREEN}Thanks for voting {AQUA}10 times!'
        rewardmessage:
          - '&oVoting Rewards:'
          - '{GOLD}-----------------------------------------------------'
          - '&9&oEveryone gets'
          - '&6[Always]: &35 Diamonds &6and &2$1500 Money'
          - '{AQUA}You currently have {GREEN}{votes} Votes'
        commands:
          - '/give {username} 264 20'
    blocked:
      - world_blocked
    votemessage:
      - '{GOLD}-----------------------------------------------------'
      - '&6&lVoting Links:'
      - '&4&l1. &6http://minecraft-server-list.com/server/317862/vote/'
      - '{GOLD}-----------------------------------------------------'
      - '{AQUA}You currently have {GREEN}{votes} Votes'
    remindmessage:
      - '{GOLD}-----------------------------------------------------'
      - '{DARK_RED}{BOLD}You have not voted lately. Vote or DIE!'
      - '{GOLD}-----------------------------------------------------'
      - '{AQUA}You currently have {GREEN}{votes} Votes'
    joinmessage:
      - '{GOLD}-----------------------------------------------------'
      - '{GOLD}{BOLD}Remember to vote at /vote to recieve &4&o/rewards'
      - '{GOLD}-----------------------------------------------------'
      - '{AQUA}You currently have {GREEN}{votes} Votes'
    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 {GREEN}{votes} Votes'
     
  3. THANK YOU!!!
     
    mc_myster likes this.
  4. Offline

    Binner_Done

    @mc_myster How can you not know what was wrong :p
     
  5. Offline

    mc_myster

  6. @mc_myster Just curious, what line was wrong?
     
  7. Offline

    mc_myster

  8. Okay, thanks again!
     
  9. Offline

    mc_myster

  10. Offline

    charlie12338

    please help me

    Code:
    #  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: false
      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:
      default:
        broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}{service} {GOLD}and received {GREEN}5 Diamonds!'
        playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!'
        commands:
        - '/give {username} 264 5'
      MC-Index:
        broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}MC-Index.com {GOLD}and received {GREEN}10 Diamonds!'
        playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!'
        commands:
        - '/give {username} 264 10'
    
    #  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: '{GREEN}{username} {GOLD}was lucky and received an {GREEN}extra $1000!'
        playermessage: '{GREEN}You were lucky and received an extra $1000!'
        commands:
        - '/eco give {username} 5000'
      '50':
        broadcast: '{GREEN}{username} {GOLD}was super lucky and received an {GREEN}extra 100 XP and $1000!'
        playermessage: '{GREEN}You were super lucky and received an {GREEN}extra 100 XP and $1000!'
        commands:
        - '/xp give {username} 250'
        - '/eco give {username} 10000'
      '100':
        broadcast: '{GREEN}{username} {GOLD}was super {Bold}{Cyan}super lucky and received an {GREEN}extra Zombie Spawner!'
        playermessage: '{GREEN}You were super {Bold}{Cyan}super lucky and received a {GREEN}Zombie Spawner!'
        commands:
        - '/give {username} 53:54
    
    #  permission reward section
    #  This example would give players with the permission node "gal.double" 10 Diamonds instead of their regular reward.
    
    perms:
      double:
        broadcast: '{username} {GOLD}has voted @ {GREEN}{service} {GOLD}and received {GREEN}10 Diamonds!'
        playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!'
        commands:
        - '/give {username} 264 10'
    
    #  cumulative reward section
    #  This example would give players 20 Diamonds once they have reached a total of 10 votes.
    
    cumulative:
      '10':
        broadcast: '{GREEN}{username} {GOLD}has voted a total of {YELLOW}10 times {GOLD}and received {GREEN}20 Diamonds!'
        playermessage: '{GREEN}Thanks for voting {AQUA}10 times!'
        rewardmessage: '20x Diamond'
        commands:
        - '/give {username} 264 20'
    
    #  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}-----------------------------------------------------'
    - 'Vote for us every day for in game rewards and extras'
    - 'http://www.planetminecraft.com/server/fearlessfactions-3706843/vote/'
    - 'http://minecraft-mp.com/server/122608/vote/'
    - 'http://www.minecraftforum.net/servers/6881-fearlessfactions/vote'
    - '{GOLD}-----------------------------------------------------'
    - '{AQUA}You currently have {GREEN}{votes} Votes'
    
    remindmessage:
    - '{GOLD}-----------------------------------------------------'
    - 'You have not voted recently, please vote to support the server'
    - 'http://www.planetminecraft.com/server/fearlessfactions-3706843/vote/'
    - 'http://minecraft-mp.com/server/122608/vote/'
    - 'http://www.minecraftforum.net/servers/6881-fearlessfactions/vote'
    - '{GOLD}-----------------------------------------------------'
    - '{AQUA}You currently have {GREEN}{votes} Votes'
    
    joinmessage:
    - '{GOLD}-----------------------------------------------------'
    - 'Vote for us every day for in game rewards and extras'
    - 'http://www.planetminecraft.com/server/fearlessfactions-3706843/vote/'
    - 'http://minecraft-mp.com/server/122608/vote/'
    - 'http://www.minecraftforum.net/servers/6881-fearlessfactions/vote'
    - '{GOLD}-----------------------------------------------------'
    - '{AQUA}You currently have {GREEN}{votes} 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 {GREEN}{votes} Votes'
    


    is my code and yaml parser gives me an error saying

    Code:
    ERROR:
    
    while parsing a block mapping
      in "<unicode string>", line 84, column 5:
            broadcast: '{GREEN}{username} {G ...
            ^
    expected <block end>, but found '{'
      in "<unicode string>", line 94, column 17:
            broadcast: '{username} {GOLD}has voted @ {GR ...
                        ^
     
Thread Status:
Not open for further replies.

Share This Page