Vote Checker & Rewarder

Give rewards to users for voting on game-servers.top & reign-of-kings.net

Total Downloads: 823 - First Release: Jun 29, 2015 - Last Update: Feb 15, 2016

5/5, 6 likes
  1. Glad you got it working! Wait until it just stops working for no reason! haha Was working for us just fine and then all of a sudden our players get no rewards. It looks to be working on our side, as in... It goes to the site and checks, but returns that there wasn't a vote. May be due to the API on the sites side. I've tried removing the plugin, config and data and starting from scratch and still no luck. I will try a server restart, when there isn't anybody on.
     
  2. Well we will se when they vote for the third time. i made it so they dont get a reward by 2nd vote but by 3rd, 5th and tenth.
    i tried voting for the second time and it didnt gave a reward coz it wasnt ment to. So the third time should give it :)
     
  3. This could be one of 2 reasons.
    First reasonis that your server has received >500 votes for the months. And thus votes got lost. Listforge only returns 500 and nothing more. This is an issue they promised they would gix more than a week ago but still haven't.

    Second reason is because rewards wasn't setup right or you forgot to add rewards for high voters.

    Let me know which one. If the first there is nothing I can do except rewrite the plugin and make it store a local db cache. This obviously takes time which I can only allocate when more important projects finish. But hopefully listforge catches a wake up and fixes their api.
     
  4. I don't think we get more than 500 votes from looking at the site vote count and I have it set to give the same reward each time they vote.
     
  5. That is strange. Send me a message with your log file, you server api and a users steamid that has issues then I will be able to assist
     
  6. I will check on it tonight and send it to you. :) Crazy thing is there are no errors in the logs.
     
  7. Hmmm yeah the plugin is not registering the votes. i tried to vote for the third time which should have given me a reward but didnt. same with my players. It just says you have no rewards and at the website it does not register the vote. it does not come on the list and when i tried to vote again to make sure, then it says i already voted.

    So something is definitely not right
     
    Last edited by a moderator: Jan 29, 2016
  8. I will quickly look if I can find a interim fix
    [DOUBLEPOST=1454096224][/DOUBLEPOST]Okay,
    It's not worth patching and trying to find out why this plugin isn't working anymore. Originally rust was first on my list to rewrite but have now decided I will rewrite this one first. Since this is where it all began. @Missy & @Plenitudo Expect version 2 in about 2 hours max. If you have any suggestions now is the time to make it ;)
     
  9. Will this fix the websites >500 votes issue? we get around 2.5k votes per month lol
     
  10. Hey man, yes definitely :D main reason why I decided to rewrite it. Also senselessgaming.com is to thank since they sponsored the rewrites.
     
  11. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.0.0

     
  12. This plugin is no longer working... any ideas?

    (15:45:01) | [Oxide] 5:44 PM [Error] VoteChecker plugin failed to compile!

    (15:45:01) | [Oxide] 5:44 PM [Error] VoteChecker.cs(234,24): error CS0246: The type or namespace name `Player' could not be found. Are you missing an assembly reference?
    [DOUBLEPOST=1454280656][/DOUBLEPOST](15:47:01) | [RCON][98.127.206.5:51478] oxide.reload VoteChecker

    (15:47:01) | [Oxide] 5:46 PM [Error] Unable to load VoteChecker. VoteChecker.cs(234,24): error CS0246: The type or namespace name `Player' could not be found. Are you missing an assembly reference?

    (15:47:01) | [Oxide] 5:46 PM [Info] No previous version to rollback plugin: VoteChecker
     

  13. Try removing the two json files in the data directory and reload it. I have seen this "No previous version issue" on other plugins and it worked for them.
    [DOUBLEPOST=1454536890][/DOUBLEPOST]Still having issues with players getting rewards.

    The plugin loads fine with no errors, but any time somebody votes and uses /getreward or logs out and back in they get a message that they haven't voted with a link to the server at the reign-of-kings.net.
     
  14. same problem. doesnt sync the votes
    VoteCheckerUserVotes.json is empty no data only [ ] .
    and rewards, api, id is correct. the command for add new rewards is
    /addreward itemname votecountneeded rewardamount
    /addreward "Stone" -1 10 -- for ten stone each vote

    can someone fix this plugin ???
     
  15. I updated the plugin and now i cant add or do anyhing ingame. It just says unknown command.

    Do i add any permission etc?
    [DOUBLEPOST=1454572071][/DOUBLEPOST]It doesnt allow me or anyone to use the commands. Either /getreward or /rewards

    and is this correct:

    {
    "autoGive": "true",
    "serverApi": "apikey",Battle Of Empires [EU|RP|Kit|KOS NIGHT ONLY] | Reign Of Kings server",
    "serverId": "2599",
    "trackingInterval": "1",
    "trackingType": "month"

    void Init()
    {
    Rewards.Add(new Reward("Stone", 1, 1000));
    Rewards.Add(new Reward("Wood", 2 , 1000));
    Rewards.Add(new Reward("iron", 3, 1000));
    Rewards.Add(new Reward("Cobblestone block", 4, 100));
    Rewards.Add(new Reward("Steel greatsword", 5, 1));
    Rewards.Add(new Reward("Iron ingot", 6, 50));
    Rewards.Add(new Reward("Steel ingot", 7, 100));
    Rewards.Add(new Reward("Reinforced Wood (Iron) Block", 8, 100));
    Rewards.Add(new Reward("Steel Battle Hammer", 9, 1));
    Rewards.Add(new Reward("Stone block", 10, 100));
    }
    }
     
    Last edited by a moderator: Feb 4, 2016
  16. You will get the unknown command when the plugin doesn't load. That looks like you are updating the .cs file, which is the plugin itself. Re-install the default file and use the /rewardconf api <YOURAPITKEY> and /rewardconf serverid <yourserverIDnumber> to add them to the config .json file. You can get your API key and Server Number by logging into reign-of-kings.net and selecting Manage My Servers. API = 32 digit alphanumeric , Server ID = 4 digit number. Don't forget to run /rewardconf <Interval> <Period> like /rewardconf month 1 will track rewards on a monthly basis.

    The VoteChecker.json in the config directory will look like the following with the hashes filed in.

    {
    "autoGive": "true",
    "serverApi": "################################",
    "serverId": "####",
    "trackingInterval": "1",
    "trackingType": "month"
    }
    [DOUBLEPOST=1454593468][/DOUBLEPOST]Pho3niX90,

    Any reason GrandExchange is referenced in the plugin? Not sure if that was intentional or not. :)

    VoteCheckerUserVotes.json isn't getting updated, so players don't get their reward. It may be because reign-of-kings.net isn't returning that the user has voted or they are rejecting the request or what. All I ever get is the "You have no new rewards, please vote for our server to receive rewards." message. This leads me to believe reign-of-kings.net is returning a reply, but not how the plugin can read it, so the plugin defaults to null or zero vote count. Hope this helps.
     
  17. I have this one in my json file:

    {
    "autoGive": "true",
    "serverApi": "",
    "serverId": "",
    "trackingInterval": "1",
    "trackingType": "month"

    }

    I added the key and the serverID and when i went ingame to make the rewards it still wont allow me?
    [DOUBLEPOST=1454612252][/DOUBLEPOST]Im deleting all files and reinstalling it back.
    [DOUBLEPOST=1454612617][/DOUBLEPOST]ok i just did everything from the beginning and its not letting me do the commands.
     
  18. Did you delete the files in the data directory also? Check the oxide log file to see if there is an error.