GAlistener not broadcasting

Discussion in 'Spigot Plugin Help' started by Mokur0h, Apr 30, 2017.

  1. I have no idea how to fix it. There are no errors except for this.
    29.04 22:48:21 [Server] INFO Owner: [Owner] Mokur0h
    29.04 22:48:21 [Server] INFO Member: [Member] Budder_Apple
    29.04 22:47:57 [Server] INFO Sent fake vote: Vote (from:test username:test address:fakeVote.local timeStamp:1493520477160)
    29.04 22:47:57 [Server] INFO Vote received on test for Offline Player: test. Adding to Queue for later
    29.04 22:47:53 [Server] INFO Warning! Ground items will be removed in 60 seconds!
    29.04 22:47:17 [Server] INFO Owner: [Owner] Mokur0h
    29.04 22:47:17 [Server] INFO Member: [Member] Budder_Apple
    29.04 22:46:46 [Server] ERROR Default service not found, check your config!
    29.04 22:46:46 [Server] INFO Sent fake vote: Vote (from:yay username:Mokur0h address:fakeVote.local timeStamp:1493520406080)
     
  2. Post your Galistener config
     
  3. # GAListener v1.3.1
    # 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: false
    permvote: false
    cumulative: false
    broadcastqueue: true
    broadcastrecent: true
    broadcastoffline: true
    votecommand: true
    rewardcommand: true
    joinmessage: false
    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: '{AQUA}Fateful{GREEN}Votes // {GREEN}{username} just voted @ {service} and received 2 Vote Keys and $1,000!'
    playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!'
    commands:
    - '/crate key {username} VoterCrate 2'
    - '/eco give {username} 1000
    MC-Index:
    broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}MC-Index.com {GOLD}and received a {GREEN}Vote Key!'
    playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!'
    commands:
    - '/crate key {username} VoterCrate 1'

    # 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} 1000'
    '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} 100'
    - '/eco give {username} 1000'

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

    perms:
    double:
    broadcast: '{GREEN}{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:
    - '&3>> &cClick these links to vote for rewards:'
    - '&7'
    - 'link1'
    - 'link2'
    - 'link3'

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

    joinmessage:
    - '{GOLD}-----------------------------------------------------'
    - 'Vote for us every day for in game rewards and extras'
    - '{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} 2 Vote Keys & $1000] {GOLD}----------------'
    votetopheader:
    - '{GOLD}---------------- {WHITE}[ {DARK_AQUA}Top Voters{WHITE} ] {GOLD}----------------'
    rewardfooter:
    - '{AQUA}You currently have {GREEN}{votes} Votes'
     
  4. I see the issue.

    According to your error log, it's not picking up your default service. This is due to the lacking ' at the end of one of your reward commands.

    This is what you have...
    commands:
    - '/crate key {username} VoterCrate 2'
    - '/eco give {username} 1000 (missing ')


    What you should have...

    commands:
    - '/crate key {username} VoterCrate 2'
    - '/eco give {username} 1000'


    This should fix the default service not getting picked up.
     
  5. That wasn't my problem. The problem was that nothing was happening when I did /fakevote, or actually voted with a vote website.
    This is what happens when I try to fakevote:
    30.04 04:14:41 [Server] INFO ... 3 more
    30.04 04:14:41 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    30.04 04:14:41 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71)
    30.04 04:14:41 [Server] INFO at com.swifteh.GAL.GAL$7.run(GAL.java:572)
    30.04 04:14:41 [Server] INFO Caused by: java.lang.NoSuchMethodError: org.bukkit.Server._INVALID_getOnlinePlayers()[Lorg/bukkit/entity/Player;
    30.04 04:14:41 [Server] INFO at java.lang.Thread.run(Unknown Source)
    30.04 04:14:41 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    30.04 04:14:41 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    30.04 04:14:41 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
    30.04 04:14:41 [Server] WARN org.apache.commons.lang.UnhandledException: Plugin GAListener v1.3.2 generated an exception while executing task 363
    30.04 04:14:41 [Server] WARN Exception in thread "Craft Scheduler Thread - 2"
    30.04 04:14:41 [Server] INFO Sent fake vote: Vote (from:1 username:1 address:fakeVote.local timeStamp:1493540081727)
    30.04 04:14:41 [Server] INFO sent fake vote!
    30.04 04:14:41 [Server] INFO Vote received on 1 for Offline Player: 1. Adding to Queue for later
     
  6. Make sure your yaml syntaxes (like spaces) are proper and correct.

    Code (Text):
    services:
      default:
        broadcast: '{GOLD}{username} {GOLD}has voted and received {GREEN}$250 {GOLD}and a {GREEN}daily crate key{GOLD}!'
        playermessage: '{GREEN}Thank your for your continous support!'
        commands:
        - '/eco give {username} 250'
        - '/kp key daily regular {username} 1'
    Try using something similar like above ^
     
  7. The yaml is valid. It still doesn't work.
     
  8. Bump
    04.05 20:57:04 [Server] INFO ... 3 more
    04.05 20:57:04 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    04.05 20:57:04 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71)
    04.05 20:57:04 [Server] INFO at com.swifteh.GAL.Metrics$1.run(Metrics.java:223)
    04.05 20:57:04 [Server] INFO at com.swifteh.GAL.Metrics.access$4(Metrics.java:328)
    04.05 20:57:04 [Server] INFO at com.swifteh.GAL.Metrics.postPlugin(Metrics.java:335)
    04.05 20:57:04 [Server] INFO Caused by: java.lang.NoSuchMethodError: org.bukkit.Server._INVALID_getOnlinePlayers()[Lorg/bukkit/entity/Player;
    04.05 20:57:04 [Server] INFO at java.lang.Thread.run(Unknown Source)
    04.05 20:57:04 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    04.05 20:57:04 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    04.05 20:57:04 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
    04.05 20:57:04 [Server] WARN org.apache.commons.lang.UnhandledException: Plugin GAListener v1.3.2 generated an exception while executing task 91
     
  9. I had this problem too. I just reinstalled both GA listener and nuvotifier/votifier and it worked all fine. You obviously did something wrong or put something in the wrong spot and messed the ga listener config up since ga listener is the one that lets you do /vote and /fakevote
     
  10. Already did that. Still doesn't work
    Here's the error after doing that:
    04.05 23:18:41 [Server] INFO ... 3 more
    04.05 23:18:41 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    04.05 23:18:41 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71)
    04.05 23:18:41 [Server] INFO at com.swifteh.GAL.RewardTask.run(RewardTask.java:37)
    04.05 23:18:41 [Server] INFO Caused by: java.lang.NoSuchMethodError: org.bukkit.Server._INVALID_getOnlinePlayers()[Lorg/bukkit/entity/Player;
    04.05 23:18:41 [Server] INFO at java.lang.Thread.run(Unknown Source)
    04.05 23:18:41 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    04.05 23:18:41 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    04.05 23:18:41 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
    04.05 23:18:41 [Server] WARN org.apache.commons.lang.UnhandledException: Plugin GAListener v1.3.2 generated an exception while executing task 594
    04.05 23:18:41 [Server] WARN Exception in thread "Craft Scheduler Thread - 33"
    04.05 23:18:41 [Server] INFO Sent fake vote: Vote (from:minecraftservers.org|1 username:eek:ptimus_blade address:fakeVote.local timeStamp:1493954321134)
    04.05 23:18:41 [Server] INFO Vote received on minecraftservers.org|1 for Player: optimus_blade