EasyVote

Moved

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

5/5, 14 likes
  1. @AlexTu Delete old config and lang files. And reload plugin
     
  2. Hi @Exel80
    Still having an issue with some players not able to collect their rewards.
    But just found another issue that you might be able to implement into the plugin
    First I award players for voting and the top 3 voters each month get an extra rank but a couple of people have said they're not able to vote because another family member has already voted (rust-server.net use IP) so could you add something in that says a user can only claim 1 reward per 24 hours, then I could setup say beancan.io and the other family member could vote on there so still get there reward.

    Sorry to be a pain
     
  3. @PUREjaguar Well i think there is nothing i can really do with family shared games. You have to contact vote site support about that.
     
  4. yes mate that i know just thought that if they could only claim once every 24 hours via the plugin then i could add more servers and people would only get 1 reward a day rather than 2 or 3
     
  5. Is there something wrong with my config that's making it not work? I replaced the id and key with *'s.


    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 {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}"
      },
      "Discord": {
        "Discord webhook (URL)": "",
        "DiscordMessage Enabled (true / false)": "false",
        "Enable @here alert (true / false)": "false",
        "Title": "Vote"
      },
      "Rewards": {
        "@": [
          "supply.signal: 1"
        ]
      },
      "Servers": {
        "ServerName1": {
          "RustServers": "******:******************"
        },
        "ServerName2": {
          "Beancan": "ID:KEY"
        }
      },
      "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"
      },
      "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}"
        }
      }
    }
     
  6. Can anyone confirm if their players are not getting rewards? It is not all players, maby around 1/3 players saying it doesnt work.
     
  7. Hard to tell. I will add logging, so you can check it there.
     
  8. Update: Only voted on The Rusty Fun Server | Rust server and then logged onto server:
    20171106105930_1.jpg

    Console Log:
    (10:55:01) | DoC joined [windows]
    (10:55:03) | [TBBQ] DoC has entered the game
    (10:55:20) | [Logger] DoC ran command: /voteday
    (10:55:24) | [Logger] DoC ran command: /claim
    (10:55:38) | [Logger] DoC ran command: /vote
    (10:55:43) | [Logger] DoC ran command: /claim

    Will do toprustservers later once the 24hr timer has elapsed and post results.

    Update: NEITHER rewarded today.

    @Exel80 can something please be done... Players are starting to get really knarked off by this. Quite honestly so am I
     
    Last edited by a moderator: Nov 6, 2017
  9. My players also say the plugin says they haven't voted even when they have.
     
  10. Exactly the same here. Wiped config/lang/data , and reset it up with the newest updates, and I still been having the problem too. Worked for some, but most people now cannot claim their rewards.
     
  11. Double check your config file, I have written a wrong thing in it and it caused my players to get their rewards declined. I have fixed it by making sure the config was correct.

    Try to reinstall and only edit the ID:KEY line of your votewebsite and check if you can claim rewards or not after voting. If it works then it is likely a config error
     
  12. my config is fine even plugin dev has seen mine out of 22 people all voting today all for the 6th vote only 15 got there rewards the rest did not, also got discord enabled so can see who claimed what on there and only 15 got a reward
     
  13. that's a lot more than 1 or 2. Something is most definitely wrong.

    Tried again today:

    20171107065135_1.jpg

    This was with: rust-servers.net

    TBH I think I'm just gonna remove 2.0.1 and use the previous version.
     
    Last edited by a moderator: Nov 7, 2017
  14. @PryMary ou that is the problem. I use apiClaim instead apiStatus when player login to server, that is why it claim your vote to be claimed.
     
  15. Exel80 updated EasyVote with a new update entry:

    2.0.2

     
  16. Code:
    plugin.load EasyVote
    EasyVote was compiled successfully in 2031ms
    [EasyVote] Unable to call hook directly: LoadDefaultMessages
    Failed to initialize plugin 'EasyVote v2.0.2' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.EasyVote.Merge[String,String] (IDictionary`2 current, IDictionary`2 defaultDict, Boolean bypass) [0x00000] in :0
      at Oxide.Plugins.EasyVote.LoadConfigValues () [0x00000] in :0
      at Oxide.Plugins.EasyVote.Init () [0x00000] in :0
      at Oxide.Plugins.EasyVote.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in :0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0
      at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in :0
    Failed to initialize plugin 'EasyVote v2.0.2' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.EasyVote.BuildNumberMax () [0x00000] in :0
      at Oxide.Plugins.EasyVote.Loaded () [0x00000] in :0
      at Oxide.Plugins.EasyVote.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in :0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0
      at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in :0
    Unloaded plugin EasyVote v2.0.2 by Exel80
    No previous version to rollback plugin: EasyVote
     
  17. Interesting @Wizard the Lizard, Well seams like your config file is corrupted some how. It should not be needed to re generate config (if you have v2.0 config already loaded?) Rename or delete old config and reload EasyVote OR copy paste config data from overview tab

    [DOUBLEPOST=1510059194][/DOUBLEPOST]I just tested that can i claim reward when vote first, then join to the server .. https://puu.sh/ygNdO/97fb682616.png
     
    Last edited by a moderator: Nov 7, 2017
  18. You dont have VoteList in lang file? Also it no longer display if ID and KEY values are ID:KEY
    Code:
    "VoteList": "You have voted <color=yellow>{1}</color> time(s)!\n Leave another vote on these websites:\n{0}",
     
  19. VoteList is there.
    But i have a Error when i Reload the Plugin:
    (14:19:49) | Unloaded plugin EasyVote v2.0.2 by Exel80
    (14:19:49) | [EasyVote] Unable to call hook directly: LoadDefaultMessages