EasyVote

Moved

Total Downloads: 4,115 - First Release: Aug 27, 2016 - Last Update: Mar 24, 2018

5/5, 14 likes
  1. I found out that you cant modify lang file, without EasyVote erase what you edited. This is problem if you try add custom command/reward. What you think, should i change "Commands" in config to this:
    Code:
    {
      "Commands": {
        "money": {
          "Console_cmd": "deposit {playerid} {value}",
          "Message": "<color=yellow>{0}$</color> has been desposited into your account"
        },
        "oxidegrantgroup": {
          "Console_cmd": "oxide.usergroup add {playerid} {value}",
          "Message": "You have been added to <color=yellow>{0}</color> group"
        }
    }
     
  2. Exel80 updated EasyVote with a new update entry:

    2.0.3

     
  3. for all with the Toprustserver problem:

    make :
    "TopServers": {
    "API Claim Reward (GET URL)": "http://api.toprustservers.com/api/put?plugin=voter&key={0}&uid={1}",
    "API Vote status (GET URL)": "http://api.toprustservers.com/api/get?plugin=voter&key={0}&uid={1}",
    "Vote link (URL)": "http://toprustservers.com/server/{0}"
    },

    and:
    "TopServers": "your id:your key"
    [DOUBLEPOST=1511687434][/DOUBLEPOST]
     
    Last edited by a moderator: Nov 26, 2017
  4. I just got Web request callback raised an exception.

    Code:
    (23:26:08) | Web request callback raised an exception (KeyNotFoundException: The given key was not present in the dictionary.)
    (23:26:08) | at System.Collections.Generic.Dictionary`2[System.String,System.String].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player, System.String serverName) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.ClaimReward (Int32 code, System.String response, .BasePlayer player, System.String url, System.String serverName) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote+<cmdClaim>c__AnonStorey3.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    (23:26:08) | Web request callback raised an exception (KeyNotFoundException: The given key was not present in the dictionary.)
    (23:26:08) | at System.Collections.Generic.Dictionary`2[System.String,System.String].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player, System.String serverName) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.ClaimReward (Int32 code, System.String response, .BasePlayer player, System.String url, System.String serverName) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote+<cmdClaim>c__AnonStorey3.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
     
  5. i have this "2.0.21"

    show me your easyvote

    "ID: KEY" your key and ID must be replaced with your data
     
    Last edited by a moderator: Nov 27, 2017
  6. Probably you have writed votesite key and api wrong. Copy paste your config here or PM me
     
  7. I have a suggestion: is it possible in the game to click on the links and then you will be forwarded
     
  8. didn't even touched it, i just updated it, i sent you the cfg.
     
  9. Exel80 updated EasyVote with a new update entry:

    2.0.31

     
  10. I've this problem, sometimes players can claim rewards and sometimes no.. Console give me this message:

    (15:45:02) | [Oxide] 15:44 [Error] Web request callback raised an exception (IndexOutOfRangeException: Array index is out of range.)

    (15:45:02) | [Oxide] 15:44 [Stacktrace] at Oxide.Plugins.EasyVote.GaveRewards (.BasePlayer player, System.Collections.Generic.List`1 rewardValue) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player, System.String serverName) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EasyVote.ClaimReward (Int32 code, System.String response, .BasePlayer player, System.String url, System.String serverName) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EasyVote+<cmdClaim>c__AnonStorey3.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0

    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0

    Need help pls.
     
  11. Can you show me you config file. Send it to my PM.
     
  12. its a fail json to your cs file
     
  13. "Array index is out of range" So something is wrong in json file. Probably forgot add : char in rewards or between key and id in voteapi.
     
  14. ok thank, i'll check that.
    [DOUBLEPOST=1512240922][/DOUBLEPOST]{
    "Settings": {
    "Prefix": "<color=cyan>[EasyVote]</color>",
    "Vote rewards cumulative (true / false)": "false",
    "Enable logging => oxide/logs/EasyVote (true / false)": "true",
    "Globally announcment in chat when player voted (true / false)": "true",
    "Send thank you message to player who voted (true / false)": "true"
    },
    "Discord": {
    "DiscordMessage Enabled (true / false)": "false",
    "Enable @here alert (true / false)": "false",
    "Title": "Vote",
    "Discord webhook (URL)": ""
    },
    "Servers": {
    "ServerName1": {
    "Beancan": "ID:KEY",
    "RustServers": "136xx0:hfHPnbnjfM8pAZSEtXS7gvbbNxxxxxx" <====== I did it on purpose
    },
    "ServerName2": {
    "Beancan": "ID:KEY"
    }
    },
    "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}"
    },
    "Beancan": {
    "API Claim Reward (GET URL)": "http://beancan.io/vote/put/{0}/{1}",
    "API Vote status (GET URL)": "http://beancan.io/vote/get/{0}/{1}",
    "Vote link (URL)": "http://beancan.io/server/{0}"
    }
    },
    "Rewards": {
    "first": [
    ""
    ],
    "vote1": [
    "supply.signal: 1"
    ],
    "vote3": [
    "money: 1500",
    "supply.signal: 2"
    ],
    "vote6": [
    "money: 3000",
    "supply.signal: 2"
    ]
    },
    "Commands": {
    "money": "deposit {playerid} {value}",
    "rp": "sr add {playerid} {value}",
    "oxidegrantperm": "oxide.grant user {playerid} {value}",
    "oxiderevokeperm": "oxide.revoke user {playerid} {value}",
    "oxidegrantgroup": "oxide.usergroup add {playerid} {value}",
    "oxiderevokegroup": "oxide.usergroup remove {playerid} {value}",
    "tempaddgroup": "addgroup {playerid} {value} {value2}",
    "tempgrantperm": "grantperm {playerid} {value} {value2}",
    "zlvl-c": "zl.lvl {playerid} C +{value}",
    "zlvl-wc": "zl.lvl {playerid} WC +{value}",
    "zlvl-m": "zl.lvl {playerid} M +{value}",
    "zlvl-s": "zl.lvl {playerid} S +{value}",
    "zlvl-*": "zl.lvl {playerid} * +{value}"
    }
    }
     
  15. @Pithivier Remove "first" from rewards. Here is fixed rewards
    Code:
    "Rewards": {
        "vote1": [
         "supply.signal: 1"
        ],
        "vote3": [
          "money: 1500",
          "supply.signal: 2"
       ],
       "vote6": [
          "money: 3000",
          "supply.signal: 2"
       ]
    }