EasyVote

Moved

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

5/5, 14 likes
  1. Fix for DiscordMessages update.

    Code:
    DiscordMessages?.Call("API_SendFancyMessage", _config.Discord[PluginSettings.WebhookURL], _config.Discord[PluginSettings.Title], json, bool.Parse(_config.Discord[PluginSettings.Alert]) ? "@here" : null);
    json arg was moved, API_SendFancyMessage now allows an embed as well text so no need to make 2 calls.
     
  2. Thank you for information and fix :)
    Will be updated in the future updates.
    [DOUBLEPOST=1518015325][/DOUBLEPOST]
    I mean that if player grant specific group? If yes, then not currently.
     
  3. Exel80 updated EasyVote with a new update entry:

    2.0.33

     
  4. @Exel80

    Something is wrong with the /reward command, when ppl use it I get this:

    Code:
    Failed to call hook 'cmdReward' on plugin 'EasyVote v2.0.33' (IndexOutOfRangeException: Array index is out of range.)
      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 even tried removing all my rewards and generating a clean one, still same issue so it's not my config.

    Could you please fix this. Thanks!
     
  5. Vote is no longer working in game for players apparently. /vote returns absolutely nothing.
     
  6. I'm getting the same thing for some reason. Even though it shows up for me
     
  7. Can you send your configs to me? Privately of course.
    I tested latest EasyVote version again and it seems to work just fine.
    [DOUBLEPOST=1518330202][/DOUBLEPOST]
    Go check your logs from /oxide/logs/EasyVote
    or send your configs to me.
    [DOUBLEPOST=1518330244][/DOUBLEPOST]
    Seems like you forgot add permission to default group "EasyVote.Use"
     
  8. Exel80 updated EasyVote with a new update entry:

    2.0.34

     
  9. Request: HuntRPG XP to be added on vote.
     
  10. This is possible without Excel doing it. Just add a command for your Hunt plugin and then add it to the Vote plugin config and Lang ;)
     
  11. Huh, I’d still like it if it was an option for everyone since the plugin is (more or less) fixed.
    Although thanks for the information.
     
  12. nevermind
     
  13. When someone voted it doesnt count.. keep saying voted 0 times, why?

    Code:
    {
      "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",
        ],
        "vote10": [
          "supply.signal: 2",
        ],
        "vote20": [
          "supply.signal: 3"
        ],
      },
      "Servers": {
        "ServerName1": {
          "Beancan": "ID:KEY",
          "RustServers": "138711:QqoLvqhF3*********cULeqXv25k8f3oH
    "
        },
        "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)": "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}"
        }
      }
    }
     
    Last edited by a moderator: Feb 13, 2018
  14. Code:
    (19:06:50) | Failed to call hook 'OnPlayerSleepEnded' on plugin 'EasyVote v2.0.34' (IndexOutOfRangeException: Array index is out of range.)at Oxide.Plugins.EasyVote.OnPlayerSleepEnded (.BasePlayer player) [0x00000] in <filename unknown>:0at Oxide.Plugins.EasyVote.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    Attached files, redacted API key. Thanks for the quick replies, really appreciate it! :)
     

    Attached Files:

    Last edited by a moderator: Feb 14, 2018
  15. Could you please put that in a code?
    Kinda spams my mobile.
     
  16. Edited with code quotes :)
     
  17. Thank you very much.
     
  18. Try remove all un-used lines from "Servers:" like this: (if you only use RustServers)
    Code:
    "Servers": {
        "PGS 20X": {
          "RustServers": "REDACTED"
        }
      },
    [DOUBLEPOST=1518693908][/DOUBLEPOST]
    Can you send your logs to me? Logs are located at oxide/logs/EasyVote