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. awesome thank you :)

    How do you give gold as reward?
    Do i just put "gold" as itemname?
    [DOUBLEPOST=1454914171][/DOUBLEPOST]Ok Thank you :)

    If I give gold as reward, do i just add "gold" as itemname?
     
  2. Yes correct, just add gold as item name
     
  3. I confirmed that gold is given with each /getreward, at least on my server. My other reward items were given twice on like the third /getreward. I ran /getreward 10 times after that and did not get the items again.
     
  4. So it gave the rewards duplicated?

    Could you try this one for me
     

    Attached Files:

  5. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.1.2

     
  6. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.1.2

     
  7. Again I deleted files and reinstalled plugin and ran commands no problem. But, when using /rewards, nothing is listed(yes i added rewards). I also voted on both server sites and logging out and back in and using /getreward it says I need to vote.
    "autoGive": "true",
    "serverApi": "apikey",
    "serverId": "5270",
    "tgsAddress": "Masters of the Realm-RP|KITS|GRANDEXCHANGE|KOSnight - Top Game Servers",
    "tgsApi": "apikey",
    "trackingInterval": "1",
    "trackingType": "month"
    -----------------------------------
    {
    "itemName": "wood",
    "votesRequired": 1,
    "itemAmount": 1000
    },
    {
    "itemName": "stone",
    "votesRequired": 1,
    "itemAmount": 1000
    },
    {
    "itemName": "flax",
    "votesRequired": 1,
    "itemAmount": 500
    },
    {
    "itemName": "feather",
    "votesRequired": 1,
    "itemAmount": 500
    },
    {
    "itemName": "gold",
    "votesRequired": 1,
    "itemAmount": 5000
    },
    {
    "itemName": "cooked meat",
    "votesRequired": 1,
    "itemAmount": 25
    },
    {
    "itemName": "water",
    "votesRequired": 1,
    "itemAmount": 25
    }
     
    Last edited by a moderator: Feb 9, 2016
  8. The 2.1.2 version stopped giving rewards. I went back to 2.1.1 and it was giving rewards.
     
  9. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.1.3

     
  10. ok same as before, fresh install. /getreward not working.
     

    Attached Files:

  11. Thanks. I will go back and see what major changed that caused this.
     
  12. I restarted the server a couple times and it did eventually work. I wont know more until someone else tests it on the server.
     
  13. Interesting. It could be when the plugin gets overwritten that it does not unload properly. Did you previsouly delete it or overwrite it?
    Let me know if anything changes.
     
  14. I deleted all vote checker files and reinstalled the new version 2.1.3
    [DOUBLEPOST=1455058921][/DOUBLEPOST]several people have voted today on my server and it seems to be working.
     
  15. I deleted all vote checker files and reinstalled the new version.
    user can get there rewards everytime when server restarts.
    VoteCheckerUserVotes.json and the VoteCheckerRewards.json are identical. there

    VoteCheckerUserVotes.json there is no steamid from user or vote counts there are the rewards same as in VoteCheckerRewards.json
     
  16. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.1.5D

     
  17. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.1.51D


    [DOUBLEPOST=1455172676][/DOUBLEPOST]
    Thank you for reporting that. It has been fixed in the new version.
     
  18. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.1.51D

     
  19. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.2.0

     
  20. Hello :)

    I set correctly set my API and server id
    In the previous version it works fine.

    The latest version has this behavior :

    1. Vote
    2./getreward will create this error

    Code:
    4:13 PM [Error] Failed to run a 1.00 timer in 'VoteChecker v2.2.0' (NullReferenceException: Object reference not set to an instance of an object)
    4:13 PM [Debug]   at Oxide.Plugins.VoteChecker.giveItems (CodeHatch.Engine.Networking.Player player, Int32 voteCount) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.VoteChecker+<WebRequestCallback>c__AnonStorey4.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0 
    3. And we can not get reward