EasyVote | Page 34 | Oxide
EasyVote
Moved
Total Downloads: 4,115 - First Release: Aug 27, 2016 - Last Update: Mar 24, 2018
- 5/5, 14 likes
-
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" } }
-
-
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 -
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
-
show me your easyvote
"ID: KEY" your key and ID must be replaced with your dataLast edited by a moderator: Nov 27, 2017 -
-
I have a suggestion: is it possible in the game to click on the links and then you will be forwarded
-
lol not working plugin ... -
-
Okay, found the error. Cleaning codes · exel80/OxidePlugins@953c2ca · GitHub
I call "_config.Discord" when it should be "_config.Settings". -
-
-
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. -
-
-
-
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}"
}
} -
@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" ] }