EasyVote

Moved

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

5/5, 14 likes
  1. You always got reward, plugin take closest reward.
    For example, if you have voted 2 timed (you got reward 1) & and 3th (you got reward 3)
     
  2. Ahhhhh :)

    Okay Thank you ;)
     
  3. Exel80 updated EasyVote with a new update entry:

    1.2.5

     
  4. Thanks for your work.
    The first plugin with my name for update x'D
     
  5. just installed the latest version and got

    [Oxide] 16:24 [Info] Unloaded plugin EasyVote v1.2.3 by Exel80
    [Oxide] 16:24 [Info] EasyVote was compiled successfully in 2102ms
    [Oxide] 16:24 [Info] Loaded plugin EasyVote v1.2.5 by Exel80
    [Oxide] 16:24 [Error] Failed to initialize plugin 'EasyVote v1.2.5' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 16:24 [Debug] at Oxide.Plugins.EasyVote.Merge[String,String] (IDictionary`2 current, IDictionary`2 defaultDict, Boolean rewardFilter) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.LoadConfigValues () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.Loaded () [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 (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.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    [Oxide] 16:24 [Info] Unloaded plugin EasyVote v1.2.5 by Exel80
    [Oxide] 16:24 [Info] Rolling back plugin to last good version: EasyVote
    [Oxide] 16:24 [Info] Loaded plugin EasyVote v1.2.3 by Exel80
     
  6. I think, delete your config file EasyVote.JSON, save your ID and API Key, reload, and paste your old ID and KEY in new config file
    [DOUBLEPOST=1478712303][/DOUBLEPOST]Hello.

    All work but players do not receive RP.
    Code:
    "Reward": {
        "vote1": [
          "supply.signal: 1",
          "autoturret: 1",
          "explosive.timed: 2",
          "rp: 1000"
     
  7. You have to "regenerate" your config file (backup/delete) you found it from oxide/config/EasyVote.json
    [DOUBLEPOST=1478713925][/DOUBLEPOST]@mannot74 Check your json file here, JSONLint - The JSON Validator.
    If its valid, make sure that serverrewards is running, also check that console command 'sr add' working.
     
  8. Results
    Valid JSON ;)

    Players do not receive RP

    And /sr add player value work well
     
    Last edited by a moderator: Nov 9, 2016
  9. And the automatic message say still /reward instead of /claim SOLVED delete EasyVote.JSON in lang folder: Oxide\lang\en\EasyVote.JSON

    And players don't receive RP NOT SOLVED
     
    Last edited by a moderator: Nov 10, 2016
  10. Damn I get the following error after updating the plugin, please help :

    11:39 [Info] Loaded plugin EasyVote v1.2.5 by Exel80
    11:39 [Error] Failed to initialize plugin 'EasyVote v1.2.5' (NullReferenceException: Object reference not set to an instance of an object)
    11:39 [Debug] at Oxide.Plugins.EasyVote.Merge[String,String] (IDictionary`2 current, IDictionary`2 defaultDict, Boolean rewardFilter) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.LoadConfigValues () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.Loaded () [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 (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.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
     
  11. I deleted config file and re-installed now its working
     
  12. Hi
    I know it's me being thick yet again but I'm trying to give a player a group of Voter for 15days.
    Been reading all 16 pages of questions and I'm still confused
    I now noticed there is "addgroup": "addgroup {playerid} {value} {value2}" as a variable but what do I add to the json file
    do I have to add a new variable ie : "addvoter": "addgroup {playerid} voter {value2}",

    and add
    "vote20": [
    "addvoter: 15d"
    "supply.signal: 1",
    "money: 250"

    and add
    Easyvote.cs
    rust.RunServerCommand($"addgroup {player.displayName} voter {value}");



    or just dont add a variable but do

    "vote20": [
    "addgroup: voter 15d"
    "supply.signal: 1",
    "money: 250"

    Please help before they take me away

    Many thanks
    Mental Jaguar
     
  13. i think there is a bug. when players with special characters in their nicknames typing /claim they did't get any reward, but EasyVote announces, that they did. console says:
    Code:
    [Oxide] 17:21 [Info] [ServerRewards] No players found
    [Oxide] 17:21 [Info] [ServerRewards] No players found
    [Oxide] 17:21 [Info] [ServerRewards] No players found
    [DOUBLEPOST=1478795959][/DOUBLEPOST]huh, looks like it's not a special characters issue... same happens with normal nicknames.
    c0d5d47d817c4fbcbab2e5f84da0e94c.png
    19fda4363fb74e16a237702210cfe667.png
     
  14. (14:52:36) | [Oxide] 14:49 [Info] Loaded plugin EasyVote v1.2.5 by Exel80

    (14:52:36) | [Oxide] 14:49 [Error] Failed to initialize plugin 'EasyVote v1.2.5' (NullReferenceException: Object reference not set to an instance of an object)

    (14:52:36) | [Oxide] 14:49 [Debug] at Oxide.Plugins.EasyVote.Merge[String,String] (IDictionary`2 current, IDictionary`2 defaultDict, Boolean rewardFilter) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EasyVote.LoadConfigValues () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EasyVote.Loaded () [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 (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.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0

    (14:52:36) | [Oxide] 14:49 [Info] Unloaded plugin EasyVote v1.2.5 by Exel80

    (14:52:36) | [Oxide] 14:49 [Info] No previous version to rollback plugin: EasyVote
     
  15. 1. install this plugin: Timed Permissions | Oxide
    2. grant group default timedpermissions.use
    3. usergroup add voter
    4. grant group "voter" as many permissions as you want: grant group voter "permission"
    5. add reward to EasyVote.json:
    Code:
        "vote20": [
          "addgroup: voter 15d"
        ]
    6. reload EasyVote
     
  16. Hello folks, I was wondering - If I were to register with multiple voting sites, does this plugin know how to tell between them? Example: If I have registered on both beancan.io and rust-servers.net, will the plugin count that as 2 votes? Or will it be able to count 1 from rust-servers and one from beancan? I don't want the rewards to be super stacked as a result of multiple sites - does that make sense?
     
  17. UP:

    All work but players do not receive RP. (/sr add works)
    Code:
    "Reward": {
        "vote1": [
          "supply.signal: 1",
          "autoturret: 1",
          "explosive.timed: 2",
          "rp: 1000"
     
  18. problems with the rewards if they vote 2 times they dont get the full list :/


    {
    "Reward": {
    "vote2": [
    "supply.signal: 1",
    "sheet.metal: 10",
    "rope: 10",
    "gears: 10",
    "rifle.body: 1",
    "sewing.kit: 10",
    "smg.body: 1",
    "metal.spring: 5",
    "metal.pipe: 5",

    ],
    "vote4": [
    "mlg.m249: 1"
     
  19. Try this,
    Code:
    {
      "Reward": {
        "vote2": [
          "supply.signal: 1",
          "sheet.metal: 10",
          "rope: 10",
          "gears: 10",
          "rifle.body: 1",
          "sewing.kit: 10",
          "smg.body: 1",
          "metal.spring: 5",
          "metal.pipe: 5"
        ],
    }
    [DOUBLEPOST=1479022876][/DOUBLEPOST]
    Can you send you full config file to my PM?
    i want check is there any error in it and then test it by my self.

    > Remember remove your API keys <
    [DOUBLEPOST=1479022969][/DOUBLEPOST]@PUREjaguar you have to have - in grantpermission or addgroup, like this.
    Code:
    "vote20": [
    "addgroup: voter-15d"
    "supply.signal: 1",
    "money: 250"
    [DOUBLEPOST=1479023092][/DOUBLEPOST]
    @Artasan Seems like ServerRewards variable is broken or something. I'm sorry for all troubles what is has done so far, will fix it soon as possible.
     
    Last edited by a moderator: Nov 13, 2016