EasyVote

Moved

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

5/5, 14 likes
  1. Exel80 updated EasyVote with a new update entry:

    2.0.21

     
  2. Now, it works. Thx
     
  3. Hrm, now I get this:
    (08:39:09) | EasyVote was compiled successfully in 2191ms

    (08:39:09) | Failed to initialize plugin 'EasyVote v2.0.21' (NullReferenceException: Object reference not set to an instance of an object)

    (08:39:09) | Failed to initialize plugin 'EasyVote v2.0.21' (NullReferenceException: Object reference not set to an instance of an object)

    (08:39:09) | Unloaded plugin EasyVote v2.0.21 by Exel80

    (08:39:09) | No previous version to rollback plugin: EasyVote
     
  4. @ItsBiggs Remove old config and reload. It should not be needed to re generate config but dunno.
     
  5. !!!IT'S WORKING!!!!

    Thank you so much @Exel80 for the fixes I just tested with Top Rust Servers and reward/claim went through straight away without any delay:
    20171107143450_1.jpg

    I will test both tomorrow once the 24hr timer has elapsed and let you know the results. I have enabled logging so would you like me to upload that log file so you can see also?
     
  6. Got it, thank you so much
     
  7. no support for TopRustServers ?
     
  8. i did it but it wont work ....top rustservers just wont work PLAYER 0 GOT AN ERROR FROM TopRustserveurs
    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 {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)": "true",
            "Enable @here alert (true / false)": "false",
            "Title": "Vote"
        },
        "Rewards": {
            "@": [
                "supply.signal: 1",
                "zlvl-*: 1"
            ],
            "vote1": [
                "supply.signal: 1",
                "scrap: 1000"
            ],
            "vote2": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote3": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote4": [
                "supply.signal: 1",
                "scrap: 1000"
            ],
            "vote5": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote6": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote7": [
                "supply.signal: 1",
                "scrap: 1000"
            ],
            "vote8": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote9": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote10": [
                "supply.signal: 1",
                "scrap: 1000"
            ],
            "vote11": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote12": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote13": [
                "supply.signal: 1",
                "scrap: 1000"
            ],
            "vote14": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote15": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote16": [
                "supply.signal: 1",
                "scrap: 1000"
            ],
            "vote17": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote18": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote19": [
                "supply.signal: 1",
                "scrap: 1000"
            ],
            "vote20": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote21": [
                "supply.signal: 1",
                "scrap: 500",
                "ammo.rocket.basic: 21"
            ]
        },
        "Servers": {
            "ServerName1": {
                "Beancan": "*********:*********************",
                "RustServers": "*********:*********************",
                "TopServeurs": "*********:*********************"
            }
        },
        "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}"
            },
            "TopServeurs": {
                "API Claim Reward (GET URL)": "https://api.top-serveurs.net/votes?server_token={0}&steam_id={1}",
                "API Vote status (GET URL)": "https://api.top-serveurs.net/votes/check?server_token={0}&steam_id={1}",
                "Vote link (URL)": "https://top-serveurs.net/srv/{0}"
            }
        }
    }
     
  9. @ItsOliDude Dont know if top-serveurs.net has changed api since when i use that API url.

    Also i dont know if you know it, but you can leave empty numbers when write "voteXX" rewards.
    Example:
    Code:
    "Rewards": {
            "@": [
                "supply.signal: 1",
                "zlvl-*: 1"
            ],
            "vote1": [
                "supply.signal: 1",
                "scrap: 1000"
            ],
            "vote5": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote10": [
                "supply.signal: 1",
                "scrap: 1000"
            ],
            "vote15": [
                "supply.signal: 1",
                "scrap: 500"
            ],
            "vote20": [
                "supply.signal: 1",
                "scrap: 1000"
            ]
        },
    if player has voted 2 time he got vote1 reward. because i have feature called "closest" it take closest reward, but still if player has voted 4 time, he still got vote1 reward. Until he past 5 he got vote5 and so on.

    Hope that clean this closest feature to all of you, so you know how awesome this plugin actually is!
     
  10. I keep getting this error when I load the plugin:
    Code:
    (10:35:53) | Failed to initialize plugin 'EasyVote v2.0.21' (NullReferenceException: Object reference not set to an instance of an object)(10:35:53) | at Oxide.Plugins.EasyVote.Merge[String,String] (IDictionary`2 current, IDictionary`2 defaultDict, Boolean bypass) [0x00000] in <filename unknown>:0at Oxide.Plugins.EasyVote.LoadConfigValues () [0x00000] in <filename unknown>:0at Oxide.Plugins.EasyVote.Init () [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.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0(10:35:53) | Failed to initialize plugin 'EasyVote v2.0.21' (NullReferenceException: Object reference not set to an instance of an object)(10:35:53) | at Oxide.Plugins.EasyVote.BuildNumberMax () [0x00000] in <filename unknown>:0at Oxide.Plugins.EasyVote.Loaded () [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.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0(10:35:53) | Unloaded plugin EasyVote v2.0.21 by Exel80(10:35:53) | No previous version to rollback plugin: EasyVote
    
     
  11. Remove old config and reload.
     
  12. i have a problem :

    (09:21:47) | Failed to initialize plugin 'EasyVote v2.0.21' (NullReferenceException: Object reference not set to an instance of an object)

    (09:21:47) | at Oxide.Plugins.EasyVote.Merge[String,String] (IDictionary`2 current, IDictionary`2 defaultDict, Boolean bypass) [0x00000] in <filename unknown>:0

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

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

    Attached Files:

  13. ^^^^ THIS ^^^^
     
  14. i have it
     
  15. Can you post your config please?
     
  16. Where can i find the new API link
     
  17. json file it under the error
     
  18. Sorry, thanks. Damn looks good to me. Validates fine too. Sorry I couldnt help, was just looking for the obvious
     
  19. @Excel80 any idea what the problem is here?

    Here's the log. I replaced the id and key with *'s

    Code:
    [11/08/2017 19:36:13] Player: Camomano99 - Check claim URL: http://rust-servers.net/api/?action=custom&object=plugin&element=reward&key=**********steamid=76561198084543556
    Site: RustServers Server: ServerName1 VoteAPI-ID: ****** VoteAPI-KEY: **********
    [11/08/2017 19:36:13] URL: RustServers - Code: 200, Response: 1
    [11/08/2017 19:36:27] Player: Camomano99 - Check claim URL: http://rust-servers.net/api/?action=custom&object=plugin&element=reward&key=**********&steamid=76561198084543556
    Site: RustServers Server: ServerName1 VoteAPI-ID: ******** VoteAPI-KEY: **********
    [11/08/2017 19:36:27] URL: RustServers - Code: 200, Response: 2
    Here's the config. I replaced the id and key with *'s
    Code:
    {
      "Settings": {
        "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",
        "Enable logging => oxide/logs/EasyVote (true / false)": "true"
      },
      "Discord": {
        "Discord webhook (URL)": "",
        "DiscordMessage Enabled (true / false)": "false",
        "Enable @here alert (true / false)": "false",
        "Title": "Vote"
      },
      "Servers": {
        "ServerName1": {
          "RustServers": "**********:************************************"
        }
      },
      "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}"
        }
      },
      "Rewards": {
        "@": [
          "supply.signal: 1"
        ]
      },
      "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}"
      }
    }
    Its getting that people are voting and claiming their rewards but no rewards are given.