EasyVote

Moved

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

5/5, 14 likes
  1. Did u get a chance to check my config? xD u replied and 1 min later u disappeared xD so I had to ask :p
     
  2. Yes, i see your data file :D
    [DOUBLEPOST=1474900348][/DOUBLEPOST]
    You have to use item shortname.
    Code:
      "Reward": {
    "vote1": [
        "pistol.revolver: 1"
    ],
    "vote2": [
        "smg.thompson: 1"
    ],
    "vote8": [
        "supply.signal: 1"
    ],
    "vote6": [
        "rifle.bolt: 1"
    ],
    "vote10": [
        "rifle.ak: 1"
    ]
    },
     
  3. Hello,

    When I do /reward list I see the command is executed but I get big blank chat without text.

    Code:
    {
    "Reward": {
    "vote2": [
        "supply.signal: 1"
    ],
    "vote14": [
        "addgroup: vip-7d"
    ],
    "vote28": [
        "addgroup: vip-7d"
    ],
    "vote42": [
        "addgroup: vip-7d"
    ],
    "vote56": [
        "addgroup: vip-7d"
    ],
    "vote70": [
        "addgroup: vip-7d"
    ],
    "vote84": [
        "addgroup: vip-7d"
    ],
    "vote98": [
        "addgroup: vip-7d"
    ],
    "vote112": [
        "addgroup: vip-7d"
    ],
    "vote126": [
        "addgroup: vip-7d"
    ],
    "vote140": [
        "addgroup: vip-7d",
        "auto.turret: 1"
    ]
    },
    "Settings": {
    "Annoucment": "true",
    "BeancanID": "",
    "BeancanKEY": "",
    "GlobalAnnouncment": "true",
    "HighestVoter": "false",
    "HighestVoterRewardGroup": "hero",
    "Prefix": "<color=cyan>[EasyVote]</color>",
    "RustServersID": "92660",
    "RustServersKEY": "63v2j9x7yske2ial0wgonhzb7jzsqc085",
    "TopRustServersID": "19711",
    "TopRustServersKEY": "ca5bfe06c8b2076980ddc16265353a31"
    },
    "Variables": {
    "addgroup": "addgroup {playerid} {value} {value2}",
    "addlvl": "xp addlvl {playername} {value}",
    "grantperm": "grantperm {playerid} {value} {value2}",
    "money": "eco.c deposit {playerid} {value}",
    "rp": "sr add {playername} {value}",
    "zlvl-mg": "zlvl {playername} MG +{value}",
    "zlvl-s": "zlvl {playername} S +{value}",
    "zlvl-wc": "zlvl {playername} WC +{value}"
    }
    }
    [DOUBLEPOST=1474910399][/DOUBLEPOST]Gyazo - 0e136305cea80b4004d143dd38623b77.png
     
  4. I know already this error.

    Why you have so much same reward? You can remove same rewards and now it should show up.

    I fixed closest number check, so now its take always lowest reward number. Check that you have latest version.

    Code:
    "Reward": {
    "vote2": [
        "supply.signal: 1"
    ],
    "vote14": [
        "addgroup: vip-7d",
    ],
    "vote140": [
        "addgroup: vip-7d",
        "auto.turret: 1"
    ]
    },
     
  5. Hello:)
    Some my players reports me , they dont have RP Point for voting.
    I search in logs, and some have points RP and some not.
    I must have installed that plugin:?
    Playtime Tracker | Oxide
     
  6. No you dont need that plugin.

    I check if its working with me, or does it have some kind of error in script. w8
    [DOUBLEPOST=1475163605][/DOUBLEPOST]@quickick Its seems to work with me. Can you send me your config file?
    P.S: Remove your api key!
     
  7. Here you go:)
    I use for now EasyVote v1.1.4 by Exel80
    I will update to newest version when i finish some of my work, busy week;)
     

    Attached Files:

  8. Ok i updated to newest version , and config look like this, and i think all is fine.
    Maybe some of my players dont understand how vote working at all;)
     

    Attached Files:

  9. @quickick Yep, everything should be fine also in your config file :)
     
  10. I found an issue, when people receive the HighestVoteGroup which is "hero" it gives a message HIGHESTVOTE THINGY or something like that, it seems to give that message every time you login or respawn. Can you change it so it only happens once? or every login
     
  11. uups... i forgot remove that debug message.... I will hotfix it soon
     
  12. Exel80 updated EasyVote with a new update entry:

    1.1.53

     
  13. So how does this work with giving permissions?

    I've tried, grantperm: kits.asdf-2d and it doesn't seem to work for me.
     
  14. Do you have installed Timed Permissions | Oxide ?
     
  15. Yes. It works with groups, but not with permissions. It works when i manually give someone the permission with grantperm.
     
  16. how do i make it so where when they vote each time they get 1 supply signal
     
  17. Can you copy your reward section from your config here?

    You add every vote list "supply.signal: 1" line.
    Code:
      "Reward": {
    "vote1": [ // Number mean how many timed need to vote, before can get this reward.
        "supply.signal: 1" // Use Item Shortname.
    ],
    "vote3": [ // When player has voted 3 time. He got this reward and only this reward.
        "supply.signal: 1",
        "money: 250"
    ],
    "vote6": [
        "supply.signal: 1",
        "money: 500",
        "addlvl: 1"
    ]
    },
     
  18. so do you not get anything for voting twice?
    [DOUBLEPOST=1476082886][/DOUBLEPOST]{
    "Reward": {
    "vote1": [
    "supply.signal: 1"
    ],
    "vote3": [
    "supply.signal: 1",
    "stocking.large: 3"
    ],
    "vote6": [
    "supply.signal: 1",
    "stocking.large: 5"
    ]
    },
    "Settings": {
    "Annoucment": "true",
    "BeancanID": "24501",
    "BeancanKEY": "4c9b29bed9",
    "GlobalAnnouncment": "false",
    "HighestVoter": "false",
    "HighestVoterRewardGroup": "hero",
    "Prefix": "<color=red>[Vote]</color>",
    "RustServersID": "",
    "RustServersKEY": "",
    "TopRustServersID": "",
    "TopRustServersKEY": ""
    },
    "Variables": {
    "addgroup": "addgroup {playerid} {value} {value2}",
    "addlvl": "xp addlvl {playername} {value}",
    "grantperm": "grantperm {playerid} {value} {value2}",
    "money": "eco.c deposit {playerid} {value}",
    "rp": "sr add {playername} {value}",
    "zlvl-mg": "zlvl {playername} MG +{value}",
    "zlvl-s": "zlvl {playername} S +{value}",
    "zlvl-wc": "zlvl {playername} WC +{value}"
    }
    }
    [DOUBLEPOST=1476082955][/DOUBLEPOST]i want it to only give them 1 supply drop every vote and every 3 votes gets a stocking is this correct
     
  19. Code:
    {
    "Reward": {
    "vote1": [
    "explosive.timed: 10",
    "autoturret: 1"
    ],
    "vote3": [
        "explosive.timed: 15",
        "autoturret: 2",
        "supply.signal: 1"
    ],
    "vote5": [
        "explosive.timed: 30",
        "autoturret: 5",
        "supply.signal: 1",
        "addgroup: supporter-7d"
    ],
    "vote15": [
        "addgroup: hero-7d",
        "grantperm: kits.vip.basic-2d"
    ],
    "vote30": [
        "addgroup: vip.basic-5d"
    ]
     
  20. Hello, i set up my config but multiple functions dont work. First when i type /reward list nothing happens. Second when i vote and do a claim i get an error:

    Code:
    Oxide] 19:08 [Warning] [EasyVote] System.NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player) [0x00000] in <filename unknown>:0
    [Oxide] 19:08 [Warning] [EasyVote] System.NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player) [0x00000] in <filename unknown>:0 
    Here is my config:

    Code:
    {
    "Reward": {
    "vote1": [
        "wood.item: 10000"
    ],
    "vote3": [
        "wood.item: 10000",
        "stones.item: 10000"
    ],
    "vote6": [
        "wood.item: 10000",
        "stones.item: 10000",
        "metal_ore.item: 5000"
    ],
    "vote10": [
        "wood.item: 10000",
        "stones.item: 10000",
        "metal_ore.item: 5000",
        "sulfur_ore.item: 5000"
    ],
    "vote15": [
        "wood.item: 10000",
        "stones.item: 10000",
        "metal_ore.item: 5000",
        "sulfur_ore.item: 5000",
        "hq_metal_ore.item: 1000"
    ],
    "vote25": [
        "rifle.ak: 1",
        "ammo.rifle: 200",
        "metal_ore.item: 5000",
        "sulfur_ore.item: 5000",
        "hq_metal_ore.item: 1000",
        "metal_ore.item: 5000",
        "sulfur_ore.item: 5000",
        "hq_metal_ore.item: 1000"
    ],
    "vote35": [
        "rifle.bolt: 1",
        "ammo.rifle.hv: 50",
        "addlvl: 2"
    ],
    "vote50": [
        "weapon.mod.small.scope: 1",
        "ammo.rifle.hv: 50",
        "weapon.mod.silencer: 1",
        "addlvl: 2"
    ],
    "vote70": [
        "metal.fragments: 10000",
        "autoturret: 3",
        "addlvl: 2"
    ],
    "vote90": [
        "explosive.timed: 50",
        "rocket.launcher: 1",
        "ammo.rocket.hv: 50",
        "addlvl: 2"
    ],
    "vote100": [
        "addgroup: voter"
    ]
    },
    "Variables": {
    "addgroup": "addgroup {playerid} {value} {value2}",
    "addlvl": "xp addlvl {playername} {value}",
    "grantperm": "grantperm {playerid} {value} {value2}",
    "money": "eco.c deposit {playerid} {value}",
    "rp": "sr add {playername} {value}",
    "zlvl-mg": "zlvl {playername} MG +{value}",
    "zlvl-s": "zlvl {playername} S +{value}",
    "zlvl-wc": "zlvl {playername} WC +{value}"
    }
    }
     
    Last edited by a moderator: Oct 10, 2016