GAListner

Discussion in 'Spigot Help' started by CalicoCactus, Jun 16, 2018.

  1. Allright, GAListner and Votifier are installed and it recieves votes properly, now to test the plugin I made it so when someone votes, they get 500 dollars.
    Code (YAML):
    services:
      default
    :
        broadcast
    : '{GREEN}{username} {GOLD}has voted @ {GREEN}{service} {GOLD}and received {GREEN}500 Dollars!'
        playermessage
    : '{GREEN}Thanks for voting at {AQUA}{service}!'
        commands
    :
       - '/eco give {username} 500'
      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 5'
     
    However when I try and vote, It does receive the vote, but this is where it gets peculiar...

    [14:15:59] [nioEventLoopGroup-2-1/INFO]: [Votifier] Got a protocol v1 vote record from /104.200.31.26:44108 -> Vote (from:MCSL username:CalicoCactus address:2601:c6:c780:1689:146e:cda3:a81c:99f5 timeStamp:1529172963 localTimestamp:1529172959050)
    [14:15:59] [Server thread/INFO]: [GAListener] Vote received on MCSL for Player: CalicoCactus
    [14:15:59] [Craft Scheduler Thread - 45/WARN]: [GAListener] Plugin GAListener v1.3.2 generated an exception while executing task 3524
    java.lang.NoSuchMethodError: org.bukkit.Server._INVALID_getOnlinePlayers()[Lorg/bukkit/entity/Player;
    at com.swifteh.GAL.RewardTask.run(RewardTask.java:37) ~[?:?]
    at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[spigot.jar:git-Spigot-2086bb0-8cc5a7e]
    at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [spigot.jar:git-Spigot-2086bb0-8cc5a7e]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_151]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_151]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]
    [14:16:15] [Server thread/INFO]: CalicoCactus issued server command: /bal
     
  2. Ok, so the problem is "{username}" your supposed to have (username) instead.
    - '/eco give (username) 500'
     
  3. Ah, thank you!