delete:
"first": [
""
],
[DOUBLEPOST=1512249699][/DOUBLEPOST]on your json.
better is that ; ( this is not on the default config)
"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-a": "zl.lvl {playerid} A +{value}",
"zlvl-wc": "zl.lvl {playerid} WC +{value}"
on the cs :
under lang.RegisterMessages
["zlvl-a"] = "You have gained <color=yellow>{0}</color> acquire level(s)",
and under
Commands = new Dictionary<string, string>
["zlvl-a"] = "zlvl {playername} A +{value}",
and this make when he bring on update ;-)
Pls change it as default ;-)
that is not meant to be bad but if you give each level individually you also want it to be the right one. before that there was not all level ;-)
EasyVote
Moved
Total Downloads: 4,115 - First Release: Aug 27, 2016 - Last Update: Mar 24, 2018
- 5/5, 14 likes
-
Ok thanks a lot.
-
Could it be that the error here is related to EasyVote?
Code:(12:24:03) | [Logger] X_Wischi_X (XXXXXXXXXXXXXX) ran command: /claim (12:24:03) | [ZLevelsRemastered] Changes for 'X_Wischi_X': (Woodcutting > 25) (Mining > 25) (Skinning > 19) (Acquire > 25) (12:24:03) | Web request callback raised an exception (KeyNotFoundException: The given key was not present in the dictionary.) (12:24:03) | 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 (12:24:03) | [ZLevelsRemastered] Changes for 'X_Wischi_X': (Woodcutting > 25) (Mining > 25) (Skinning > 20) (Acquire > 25) (12:24:03) | Web request callback raised an exception (KeyNotFoundException: The given key was not present in the dictionary.) (12:24:03) | 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
Code:{ "Commands": { "money": "eco.c deposit {playerid} {value}", "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 {playername} * +{value}", "zlvl-c": "zl.lvl {playername} C +{value}", "zlvl-m": "zl.lvl {playername} M +{value}", "zlvl-s": "zl.lvl {playername} S +{value}", "zlvl-wc": "zl.lvl {playername} 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" ], "vote5": [ "rp: 250", "wood: 10000", "stones: 10000", "hq.metal.ore: 100", "sulfur.ore: 100" ], "vote10": [ "rp: 500", "hq.metal.ore: 250", "sulfur.ore: 250" ], "vote20": [ "wood: 50000", "stones: 50000", "rp: 1000", "hq.metal.ore: 1000", "sulfur.ore: 1000", "techparts: 1", "scrap: 500" ] }, "Servers": { "Rusty-German": { "Beancan": "xxxxxxxxxxxxxxxxx", "RustServers": "xxxx:xxxxxxxxxxxxxxxxx" } }, "Settings": { "Enable logging => oxide/logs/EasyVote (true / false)": "true", "Globally announcment in chat when player voted (true / false)": "true", "Prefix": "<color=cyan>[EasyVote]</color>", "Send thank you message to player who voted (true / false)": "true", "Vote rewards cumulative (true / false)": "false" }, "VoteSitesAPI": { "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}" }, "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}" } } }
-
@Saschilys I suppose that Beancan api has id and key spaced with : char? even that it just shown in censured version one big string?
Also do you use latest EasyVote version where i fixed this "KeyNotFoundException" error? -
Damn...
I missed the update.
Thx for the help -
i have your update
(10:05:32) | Failed to call hook 'OnPlayerSleepEnded' on plugin 'EasyVote v2.0.31' (FormatException: Input string was not in a correct format.)
(10:05:32) | at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0
at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
at System.String.Format (System.String format, System.Object arg0, System.Object arg1) [0x00000] in <filename unknown>:0
at Oxide.Plugins.EasyVote.OnPlayerSleepEnded (.BasePlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.EasyVote.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
easyvote.cs i have updatet with my codes (TopRustserver + Zlvl-a" )
and i have no delete the lang file .Attached Files:
Last edited by a moderator: Dec 4, 2017 -
-
@Schrotty Error happen in your config. In JSON, you don't have to add , when its the last line. Here is fixed version
Attached Files:
-
-
what did you change that? -
Code:"Rewards": { "vote1": [ "money: 150", "tempgrantperm: carcommanderlite.use-1d", "supply.signal: 1", "scrap: 100", "zlvl-wc: 1", "zlvl-s: 1", "zlvl-m: 1", "zlvl-a: 1", ], "vote2": [ "money: 250", "tempgrantperm: carcommanderlite.use-1d0h0m", "scrap: 200", "zlvl-wc: 1", "zlvl-s: 1", "zlvl-m: 1", "zlvl-a: 1", ], "vote3": [ "money: 250", "tempgrantperm: carcommanderlite.use-1d", "scrap: 250", "zlvl-wc: 1", "zlvl-s: 1", "zlvl-m: 1", "zlvl-a: 1", ], "vote4": [ "money: 500", "supply.signal: 1", "tempgrantperm: carcommanderlite.use-1d", "scrap: 300", "zlvl-wc: 1", "zlvl-s: 1", "zlvl-m: 1", "zlvl-a: 1", ] },
Code:"Rewards": { "vote1": [ "money: 150", "tempgrantperm: carcommanderlite.use-1d", "supply.signal: 1", "scrap: 100", "zlvl-wc: 1", "zlvl-s: 1", "zlvl-m: 1", "zlvl-a: 1" ], "vote2": [ "money: 250", "tempgrantperm: carcommanderlite.use-1d0h0m", "scrap: 200", "zlvl-wc: 1", "zlvl-s: 1", "zlvl-m: 1", "zlvl-a: 1" ], "vote3": [ "money: 250", "tempgrantperm: carcommanderlite.use-1d", "scrap: 250", "zlvl-wc: 1", "zlvl-s: 1", "zlvl-m: 1", "zlvl-a: 1" ], "vote4": [ "money: 500", "supply.signal: 1", "tempgrantperm: carcommanderlite.use-1d", "scrap: 300", "zlvl-wc: 1", "zlvl-s: 1", "zlvl-m: 1", "zlvl-a: 1" ] },
-
Since ipdate i have this error.
Code:(15:55:04) | Failed to call hook 'cmdReward' on plugin 'EasyVote v2.0.31' (IndexOutOfRangeException: Array index is out of range.) (15:55:04) | at Oxide.Plugins.EasyVote.cmdReward (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.EasyVote.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
-
I cant fix it to work.. when i write /vote it doesnt display the link to my Vote page.
If i vote manually i can get Reward but dont have it displayed ingame.
here is my setup, what do i need to change?
{
"Commands": {
"money": "deposit {playerid} {value}",
"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": [
"oxidegrantperm: kits.starterkit"
],
"vote10": [
"money: 1000",
"rp: 50",
"tempgrantperm: fauxadmin.allowed-5m"
],
"vote3": [
"oxidegrantgroup: member"
],
"vote6": [
"money: 500",
"tempaddgroup: vip-1d1h1m"
]
},
"Servers": {
"ServerName1": {
"Beancan": "ID:KEY",
"RustServers": "137521"
},
"ServerName2": {
"Beancan": "ID:KEY"
}
},
"Settings": {
"Enable logging => oxide/logs/EasyVote (true / false)": "true",
"Globally announcment in chat when player voted (true / false)": "true",
"Prefix": "<color=cyan>[EasyVote]</color>",
"Send thank you message to player who voted (true / false)": "true",
"Vote rewards cumulative (true / false)": "false"
},
"VoteSitesAPI": {
"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}"
},
"RustServers": {
"API Claim Reward (GET URL)": "https://rust-servers.net/api/?actio...ement=claim&key={ServerKey}&steamid={SteamID}",
"API Vote status (GET URL)": "https://rust-servers.net/api/?object=votes&element=claim&key={ServerKey}&steamid={SteamID}",
"Vote link (URL)": "Vote for SWE/ENG x2 TP-Clan-Kit-PM-Trade"
}
}
} -
U need there ID and Key, not only ID
RustServers": "137521" -
I know my ID but where is my key? is it API key?
-
-
-
What happened to the config settings for highest voter group/reward/duration/etc?!?!
The new config it replaced my old one with has no settings it it for top voter... -
As Admin i can do /vote and get the link. But as player they cant. Is it any command to do for allow all to /vote?
Greetings, -
-
any tips for getting server registered at beancan.io?