EasyVote

Moved

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

5/5, 14 likes
  1. Fixed in latest update :)
     
    Last edited by a moderator: Sep 5, 2016
  2. Exel80 updated EasyVote with a new update entry:

    1.0.6

     
  3. Exel80 updated EasyVote with a new update entry:

    1.0.7


    [DOUBLEPOST=1473102259][/DOUBLEPOST]Wow.. Everytime when i update this plugin. I found out that i forgot remove debug command or something else. Im sorry for all this spam updates what i have done already.

    Hope everything work now correctly!
     
  4. Okay so this is what the console spits out


    (05:01:19) | [Oxide] 05:02 [Error] Failed to call hook 'cmdReward' on plugin 'EasyVote v1.0.6' (IndexOutOfRangeException: Array index is out of range.)

    (05:01:19) | [Oxide] 05:02 [Debug] 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 (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 name, System.Object[] args) [0x00000] in <filename unknown>:0

    Okay so im using serverrewards and i want them to get RP when they vote, I also tried changing the chat command from reward to vreward so it dosnt interfear with donators doing /reward because i changed the serverreward chat command from /sr to /reward. And when i type /vote into chat the links dont come up, this is a pic of the chat http://puu.sh/r11l3/f80ef69106.jpg
     
  5. Update EasyVote v1.0.6 to v1.0.7 I'm really sorry about that error :_/
     
  6. Relax bro i cant wait till you get this going stable btw TopRustServer dont have a ID they just have an API key, So remove that to prevent future confusion also i added you on steam and im going to bed XD
     
  7. One thing I wonder about when seeing a plugin post a URL to chat is:

    You can not click on a link in chat, right? So why post the link? The player usually is too lazy to click on it.


    And: Is it possible to make a GUI for Rust with buttons that open a URL in a Browser?
     
  8. Its not possible click links in chat with this client.
    Solved - Clicking links in the chat? | Oxide

    I dont know is it possible to do with gui Buttons. I check what i can do.
    [DOUBLEPOST=1473152110][/DOUBLEPOST]
    TopRustServerID is just for link.
     
  9. The first version was pretty good .please do not add evrything and not to much..i like idea of easy vote .
     
  10. I dont have any idea to add new features. Now start working to make EasyVote Universal plugin.

    Hope you still enjoy EasyVote, and sorry for all these updates :)
     
  11. Sadly I get an error message in server console:
    [XP Manager] Syntax: xp addlvl <player> <level>
    So it seems the syntax your plugin is giving to server console wrong. Sadly i cant check (perhaps add a small console output that so we can debug that)

    br
     
  12. That is weird. Because its working when i test it. Can you attach your config file here?

    And make sure that you don't have in "godmode" (if you have that plugin),
    because its broke your name with that [god] prefix.
     
  13. Code:
    {
      "Reward": {
        "vote1": [
          "addlvl: 1",
        ],
        "vote2": [
          "addlvl: 1",
          "supply.signal: 1",
        ],
        "vote3": [
          "addlvl: 1",
        ],
        "vote4": [
          "addlvl: 1",
          "supply.signal: 1",
        ]
      },
      "Settings": {
        "Prefix": "<color=cyan>[EasyVote]</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}"
      }
    }
    The thing is we tried it with different users. The supply signals are working, the addlevel only works on a user named "3ZY". It failed on the user "l0wD" and "ro0t. einfach so tilidin".

    Godmode isnt installed, but Clans:IO is.

    Br & thanks

    Btw: I deleted my Api Keys.
     
  14. Okay, thank you for that report.
    SteamID is always better then display name, but sadly xp addlvl want display name.

    Try these config
    Code:
    {
        "Reward": {
            "vote1": [
                "addlvl: 1"
            ],
            "vote2": [
                "addlvl: 1",
                "supply.signal: 1"
            ],
            "vote3": [
                "addlvl: 1"
            ],
            "vote4": [
                "addlvl: 1",
                "supply.signal: 1"
            ]
        },
        "Settings": {
            "Prefix": "<color=cyan>[EasyVote]</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}"
        }
    }
     
  15. Bug players get rewards everytime they do /reward
     
  16. What EasyVote version you using? If possible check that your "DEBUG" bool isn't true.
    You found it by open EasyVote.cs and go line 25, its under Helper region.

    If you use 1.0.7 its should be false by default. (I just check it)

    But its seems to work with me when i try it.
    I earn reward what i voted.

    I check later more when i have time. Other ways disable EasyVote, if you have still have this problem.
     
  17. with the \" it works fine now, thanks! (u should probably update your standard json to this)
     
  18. I can change that {playername} change name to "name here" automatically. So you dont need add \" in config. I upload 1.0.8 soon
     
  19. Exel80 updated EasyVote with a new update entry:

    1.0.8

     
  20. Is there a way , how I can see how much vote points I have ?