IndexOutOfRangeException at GaveRewards
tbird412
Web request callback raised an exception (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at Oxide.Plugins.EasyVote.GaveRewards (BasePlayer player, System.Collections.Generic.List`1[T] rewardValue) [0x0002a] in <3a8d2a27bafa46268d76c67cffa46bea>:0 
  at Oxide.Plugins.EasyVote.RewardHandler (BasePlayer player, System.String serverName) [0x00230] in <3a8d2a27bafa46268d76c67cffa46bea>:0 
  at Oxide.Plugins.EasyVote.ClaimReward (System.Int32 code, System.String response, BasePlayer player, System.String url, System.String serverName) [0x0012e] in <3a8d2a27bafa46268d76c67cffa46bea>:0 
  at Oxide.Plugins.EasyVote+<cmdClaim>c__AnonStorey3.<>m__0 (System.Int32 code, System.String response) [0x0002e] in <3a8d2a27bafa46268d76c67cffa46bea>:0 
  at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00034] in <4452f821def6406d834e4149849fe7ea>:0
tbird412
Original Poster
My config ...
{
  "Commands": {
    "oxidegrantgroup": "oxide.usergroup add {playerid} {value}",
    "oxidegrantperm": "oxide.grant user {playerid} {value}",
    "oxiderevokegroup": "oxide.usergroup remove {playerid} {value}",
    "oxiderevokeperm": "oxide.revoke user {playerid} {value}",
    "rp": "sr add {playerid} {value}",
    "tempaddgroup": "addgroup {playerid} {value} {value2}",
    "tempgrantperm": "grantperm {playerid} {value} {value2}",
    "zlvl-*": "zl.lvl {playerid} * +{value}",
    "zlvl-c": "zl.lvl {playerid} C +{value}",
    "zlvl-m": "zl.lvl {playerid} M +{value}",
    "zlvl-s": "zl.lvl {playerid} S +{value}",
    "zlvl-wc": "zl.lvl {playerid} WC +{value}"
  },
  "Discord": {
    "Discord webhook (URL)": "",
    "DiscordMessage Enabled (true / false)": "false",
    "Enable @here alert (true / false)": "false",
    "Title": "Vote"
  },
  "Rewards": {
    "@": [
      "supply.signal: 1",
      "zlvl-*: 1"
    ],
    "first": [
      "rp 50",
    ],
    "vote2": [
      "rp 60"
    ],
    "vote3": [
      "rp 70"
    ],
    "vote4": [
      "rp 80"
    ],
    "vote5": [
      "rp 90"
    ],
    "vote6": [
      "rp 100"
    ],
    "vote7": [
      "rp 110"
    ],
    "vote8": [
      "rp 120"
    ],
    "vote9": [
      "rp 150"
    ],
    "vote10": [
      "rp: 200",
      "clatter.helmet: 1"
    ],
    "vote15": [
      "rp 300",
	  "scientistsuit_heavy: 1"
    ],
    "vote20": [
      "ro 500",
      "electric.generator.small: 1"
    ]
  },
  "Servers": {
    "Zombie Nation PVE": {
      "RustServers": "149102:0h9C5LfMvgTYKIsILKNTPndfverfZQaBgE"
    },
    "Zombie Nation PVP - Terminus": {
      "RustServers": "149889:wESPJ2MUwNHszYWqXNPT1Lt1SiXFice8eL8"
    }
  },
  "Settings": {
    "Enable logging => oxide/logs/EasyVote (true / false)": "true",
    "Globally announcment in chat when player voted (true / false)": "true",
    "Prefix": "<color=#00bfff>[Vote]</color>",
    "Send thank you message to player who voted (true / false)": "true",
    "Vote rewards cumulative (true / false)": "false"
  },
  "VoteSitesAPI": {
    "RustServers": {
      "API Claim Reward (GET URL)": "http://rust-servers.net/api/?action=custom&object=plugin&element=reward&key={0}&steamid={1}",
      "API Vote status (GET URL)": "http://rust-servers.net/api/?object=votes&element=claim&key={0}&steamid={1}",
      "Vote link (URL)": "http://rust-servers.net/server/{0}"
    }
  }
}​