Vote Checker & Rewarder

Give rewards to users for voting on game-servers.top & rust-servers.net

Total Downloads: 1,969 - First Release: Jul 12, 2015 - Last Update: Feb 15, 2016

5/5, 12 likes
  1. Code:
    [1/31/2016 5:46:53 AM] [Oxide] 5:46 AM [Info] Loaded plugin VoteChecker v2.0.2 by Pho3niX90
    [1/31/2016 5:46:53 AM] [Oxide] 5:46 AM [Debug]   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList (IList list, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 
     
  2. When you do /rewards nothing is showing up until after you vote. Not really good when i tell people i added new rewards lol. Also /itemlist seems to be not working as well.
     
  3. 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?
    --- Double Post Merged, A moment ago ---
    (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
     
  4. broken keeps giving players the same vote reward after relogging
     
  5. You did not delete old files, please delete all old pre version 2 files from both data, and config
    [DOUBLEPOST=1454307705][/DOUBLEPOST]
    I will investigate this, in the meantime to make the debugging a faster process, could you please provide me with your rewards file.
    [DOUBLEPOST=1454307730][/DOUBLEPOST]
    Are you using the rust plugin on a rust server?
    [DOUBLEPOST=1454307749][/DOUBLEPOST]
    I will have a look on whats going on.
     
  6. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.0.3


    [DOUBLEPOST=1454309525][/DOUBLEPOST]I will have to investigate other issues later today when I am able to properly test whats going on.
     
  7. Thank you for the update! I will test now. Is it possible to set-up for daily rewards? I'm not sure if using /rewardconf day would work or not.
     
  8. /addreward itemname rewardamount votecountneeded
    - if votecountneeded is set to -1 it will give that reward for each vote
     
  9. Got it, so I could set that if someone wants a daily reward but still do /rewardconf week and set rewards for 7 days so they could also save up votes for an entire week to get another item
     
  10. /rewards doesnt show anything other than "get rewards for daily votes" for me also:

    Code:
    [
      {
        "itemName": "Blueprint Fragment",
        "votesRequired": 1,
        "itemAmount": 550
      },
      {
        "itemName": "Blueprint Library",
        "votesRequired": 2,
        "itemAmount": 5
      }
    ]
     
    Last edited by a moderator: Feb 1, 2016
  11. Everything's working great on my end - My only question now is: Is there a way to change the /rewards text when you have it set for -1 to not say -1?

    Currently, it says:

    Which confuses players.
     
  12. Could you possibly post your reward config so i can see if i did something wrong as mine doesn't work?
     
  13. Sure!

    Code:
    {
      "cyberscene_RewardType": "0",
      "listforge_api": "",
      "listforge_serverID": ""
    }
    
    From what I can see, I think your issue is you're adding code to the config trying to set-up rewards instead of using the commands detailed in the Overview page in-game to set rewards.

    Try that instead with the config I posted above and it should work for you.
     
  14. Plugin is workign as it says, only problem is after a server restart, it hands out rewards that have already been given. My server auto restarts every 12 hours, so they can get the gifts twice a day.... =/

    Could you please look into this?
     
  15. is this /rewardconf <true/false> command for the auto give? I set mine to false using the command, but in the config file, it still says true.

    When I logged onto the server, it gave me rewards for voting one time (I didn't vote yesterday because when I tried it told me I still had 8hrs left to vote again then I forgot to vote.) Then, I went to the voting site and voted. Typed /getreward in chat and it gave me the rewards for voting 2 times. I'm confused. See the screen shot below.

    Steam Community :: Screenshot

    PS..You will also see that the second time, it gave me the both rewards for voting once and twice.
     
    Last edited by a moderator: Feb 2, 2016
  16. the reward config is a different file to the main config, if is in the folder "data". You posted the main config, earlier i posted the content of my reward config from the "data" folder.

    Also you main config uses different values than the up to date version of this mod, my main config looks like this:
    Code:
    {
      "autoGive": "false",
      "serverApi": "xxxxxxxxxxxxxxxxxxxxx",
      "serverId": "blabla",
      "trackingInterval": "1",
      "trackingType": "month"
    }
     
  17. Oh, interesting.

    I don't have a config listed under my /data folder. Hm.
     
  18. Naz

    Naz

    is it possible to give money insted of items?
     
  19. votecountsneeded -1 gives that item/items every vote... works great, now my question is, i wanna add a additional item (supply signal) every 5 votes.. so at 5, 10, 15 etc will votecountneeded -5 work aswell?
     
  20. Its giving reward every server restart-.- please help?