Vote Checker & Rewarder

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

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

5/5, 12 likes
  1. We currently do not get this message, but with each player only a few people. Especially having the special characters in its name.
    Code:
    [Oxide] 2:17 PM [Error] Web request callback raised an exception in 'VoteChecker' plugin (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 2:17 PM [Debug]   at BasePlayer.SendConsoleCommand (System.String command, System.Object[] obj) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RustPlugin.PrintToChat (.BasePlayer player, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RustPlugin.SendReply (.BasePlayer player, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.VoteChecker.giveItems (.BasePlayer player, Int32 voteCount) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.VoteChecker.WebRequestCallback (Int32 code, System.String response, .BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.VoteChecker+<GetRewardsForThisPlayer>c__AnonStorey1.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0 
     
    Last edited by a moderator: Jul 19, 2015
  2. [7/19/2015 8:59:00 PM] [Oxide] 8:59 PM [Error] Web request callback raised an exception in 'VoteChecker' plugin (NullReferenceException: Object reference not set to an instance of an object)
     
  3. Thanks guys. Could you please indicate the avg amount of players on your servers?

    I will release a fix in the next day
     
  4. We average 44-50 players in the server.
     
  5. Code:
    [7/21/2015 4:06:44 PM] [Oxide] 4:06 PM [Debug] at BasePlayer.SendConsoleCommand (System.String command, System.Object[] obj) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.RustPlugin.PrintToChat (.BasePlayer player, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.RustPlugin.SendReply (.BasePlayer player, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.VoteChecker.giveItems (.BasePlayer player, Int32 voteCount) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.VoteChecker.WebRequestCallback (Int32 code, System.String response, .BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.VoteChecker+<GetRewardsForThisPlayer>c__AnonStorey1.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Jul 21, 2015
  6. any update on this? /vote isnt working :(


    Also, is there no way to code this so when a player types /vote ingame it votes for them via the site? It is very time consuming to ask someone to go to a website as a new player and manually type in the url to vote. Dont even know if this is possible though
     
    Last edited by a moderator: Aug 16, 2015
  7. @Sams2 Hey there isn't any vote function, the reason why you can do it from the app is because it's against the rules of listforge. I would also have preferred your suggestion.
     
  8. Itemname has changend from "_" to this "."
     
  9. We use m-teleportation and every time a person uses the /home command, upon spawning after home the vote checker seems to ask for rewards and states "You have no rewards, please vote for our server to receive rewards" but if you have voted you just receive the reward without requesting it.

    There might be a conflict with the m-teleportation plugin.
     
  10. same. any fix?
     
  11. Wulf

    Wulf Community Admin

    It's not a conflict, it's how the plugin is checking. This plugin checks when a player wakes up, OnPlayerSleepEnded. I would probably be better of this plugin author used OnPlayerInit or OnPlayerConnected though instead.
     
  12. thanks. switched it out. much better
     
  13. Thank you Wulf, I just commented that part of the code out as well.
     
  14. Can we configure this trough RCON?
     
  15. Wulf

    Wulf Community Admin

    It only has chat commands from what I can see, so no.
     
  16. I would like to reward players a voting point for a certain activity, can this be done myself? Can I access the source code of this plugin somewhere so I can have a look? What about copyrights?
     
  17. Wulf

    Wulf Community Admin

    The Download link is the source, as with all plugins. ;)

    Generally the rule of thumb on the internet is that unless otherwise specified, All Rights Reserved applies.
     
  18. Can I get a little help here, digging in to the .cs file, where does it add the voting point after it has checked for a valid vote?
    [DOUBLEPOST=1443297768][/DOUBLEPOST]I am guessing It's
    Code:
    (amountToGive
    or
    Code:
    votesNeeded
     
    Last edited by a moderator: Sep 26, 2015
  19. Hi i have a problem with this Plugin .

    (12:51:02) | [Oxide] 10:47 AM [Info] [VoteChecker] Should we give? amnt:100 vtneed:1 vtcnt:5

    (12:51:02) | [Oxide] 10:47 AM [Info] [VoteChecker] WARNING!: [G4E] Viper had a 5 votecount but there was no reward for that amount to give.

    (12:51:02) | [Oxide] 10:47 AM [Info] [VoteChecker] Should we give? amnt:1 vtneed:1 vtcnt:5

    (12:51:02) | [Oxide] 10:47 AM [Info] [VoteChecker] WARNING!: [G4E] Viper had a 5 votecount but there was no reward for that amount to give.

    (12:51:02) | [Oxide] 10:47 AM [Info] [VoteChecker] Should we give? amnt:1 vtneed:1 vtcnt:5

    (12:51:02) | [Oxide] 10:47 AM [Info] [VoteChecker] WARNING!: [G4E] Viper had a 5 votecount but there was no reward for that amount to give.

    what is the problem ? how fix it

    greez viper
     
  20. What's this apikey in the config?