EasyVote

Moved

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

5/5, 14 likes
  1. hi, "Servers": {
    "ServerName1": {
    "Beancan": "ID:KEY",
    "RustServers": "1xxxxx:lDIz2yGO45Jy3sywgExxxxxxxxxxx"

    what should i put to my RustServers: ?? where do i get that code from my serveR ? its not working for me right now.
    [DOUBLEPOST=1510661273][/DOUBLEPOST]Failed to call hook 'OnPlayerSleepEnded' on plugin 'EasyVote v2.0.21' (IndexOutOfRangeException: Array index is out of range.)
    at Oxide.Plugins.EasyVote.OnPlayerSleepEnded (.BasePlayer player) [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

    im receiving this errors :( can some1 help pls ?
     
  2. have you registered your server on server-rust.net? there you have the configuration that you have to put in the json. Id and Key
     
  3. There is an issue with localisation "/vote" is in french but "/reward list" stay in english :/

    https://image.prntscr.com/image/BysOQFRpTums9euRlydg5Q.png

    oxide\lang\fr
    Code:
    {
      "ClaimError": "Quelque chose s'est mal passé! Le joueur <color=red>{0} a eu une erreur</color> de <color=yellow>{1}</color>. Veuillez réessayer plus tard!",
      "ClaimReward": "Vous venez de recevoir votre récompense de vote. Enjoy!",
      "ClaimPleaseWait": "Vérification des sites Web de vote. S'il vous plaît, attendez...",
      "VoteList": "Vous avez voté <color=yellow>{1}</color> fois!\n Faites un autre vote sur ces sites:\n{0}",
      "EarnReward": "Lorsque vous avez voté, tapez <color=yellow>/claim</color> pour réclamer votre récompense!",
      "RewardListFirstTime": "<color=cyan>Récompense pour avoir voté pour la première fois sur ce wipe.</color>",
      "RewardListEverytime": "<color=cyan>Récompense, que les joueurs recevront à chaque fois qu'ils voteront.</color>",
      "RewardList": "<color=cyan>Récompense pour avoir voté</color> <color=orange>{0}</color> <color=cyan>fois.</color>",
      "Received": "Vous avez reçu {0}x {1}",
      "ThankYou": "Merci d'avoir voté! Vous avez voté <color=yellow>{0}</color> fois(s) Voici votre récompense pour..\n{1}",
      "NoRewards": "Vous n'avez pas de nouvelles récompenses disponibles\n Veuillez taper <color=yellow>/vote</color> et allez sur l'un des sites pour voter et recevoir votre récompense",
      "RemeberClaim": "Vous n'avez pas encore réclamé votre récompense de vote pour le serveur! Tapez <color=yellow>/claim</color> pour réclamer votre récompense!\n Vous devez réclamer votre récompense dans les <color=yellow>24h</color>! Sinon, elle disparaîtra!!",
      "GlobalChatAnnouncments": "<color=yellow>{0}</color><color=cyan> a voté </color><color=yellow>{1}</color><color=cyan> fois et vient de recevoir sa récompense. Découvrez où vous pouvez voter en tapant</color><color=yellow> /vote</color>\n<color=cyan>Pour voir une liste des récompenses disponibles, tapez</color><color=yellow> /reward list</color>",
      "money": "<color=yellow>{0}$</color> ont été déposé sur votre compte",
      "rp": "Vous avez gagné <color=yellow>{0}</color> RP",
      "tempaddgroup": "Vous avez été ajouté temporairement au groupe <color=yellow>{0}</color> (Expire dans {1})",
      "tempgrantperm": "Vous avez été temporairement promu à la permission <color=yellow>{0}</color> (Expire dans {1})",
      "zlvl-wc": "Vous avez gagné <color=yellow>{0}</color> niveau de coupe du bois",
      "zlvl-m": "Vous avez gagné <color=yellow>{0}</color> niveau de minage",
      "zlvl-s": "Vous avez gagné <color=yellow>{0}</color> niveau de dépeçage",
      "zlvl-c": "Vous avez gagné <color=yellow>{0}</color> niveau de craft",
      "zlvl-*": "Vous avez gagné <color=yellow>{0}</color> à tout les niveaux",
      "oxidegrantperm": "Vous avez été promu à la permission <color=yellow>{0}</color>",
      "oxiderevokeperm": "Votre permission <color=yellow>{0}</color> est expiré",
      "oxidegrantgroup": "Vous avez été ajouté au groupe <color=yellow>{0}</color>",
      "oxiderevokegroup": "Votre inscription au groupe <color=yellow>{0}</color> est expiré"
    }
     
    Last edited by a moderator: Nov 15, 2017
  4. hey we have the next Problem
    Code:
    (20:37:40) | Failed to initialize plugin 'EasyVote v2.0.21' (NullReferenceException: Object reference not set to an instance of an object)
    (20:37:40) | 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
    (20:37:40) | Failed to initialize plugin 'EasyVote v2.0.21' (NullReferenceException: Object reference not set to an instance of an object)
    (20:37:40) | at Oxide.Plugins.EasyVote.BuildNumberMax () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.Loaded () [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.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    (20:37:40) | Unloaded plugin EasyVote v2.0.21 by Exel80
    (20:37:40) | No previous version to rollback plugin: EasyVote
     
    Last edited by a moderator: Nov 17, 2017
  5. Code:
    (22:26:54) | EasyVote was compiled successfully in 1969ms
    (22:26:55) | Failed to initialize plugin 'EasyVote v2.0.21' (NullReferenceException: Object reference not set to an instance of an object)
    (22:26:55) | Failed to initialize plugin 'EasyVote v2.0.21' (NullReferenceException: Object reference not set to an instance of an object)
    (22:26:55) | Unloaded plugin EasyVote v2.0.21 by Exel80
    (22:26:55) | No previous version to rollback plugin: EasyVote
     

  6. Is it possible that you have an error in the json? check it on jsonlint.com
     
  7. getting this today
    Code:
    Web request produced exception (Url: http://api.toprustservers.com/api/get?plugin=voter&key=abb5019c809c723736acbf3818f306f4&uid=76561198016789965) (NullReferenceException: Object reference not set to an instance of an object)
    (14:59:41) | at Oxide.Core.Libraries.WebRequests+WebRequest.<WaitForResponse>b__40_0 (IAsyncResult res) [0x00000] in <filename unknown>:0
    (14:59:41) | Web request produced exception (Url: http://api.toprustservers.com/api/get?plugin=voter&key=abb5019c809c723736acbf3818f306f4&uid=76561198281767778) (NullReferenceException: Object reference not set to an instance of an object)
    (14:59:41) | at Oxide.Core.Libraries.WebRequests+WebRequest.<WaitForResponse>b__40_0 (IAsyncResult res) [0x00000] in <filename unknown>:0
     
  8. Was support for TopRustServers dropped/removed? ---> Top Rust Servers, Best Ranked Rust Gaming Servers

    ===

    EDIT: Looks like tested/default support of TopRustServers was dropped v2.0.0
    EasyVote for Rust - 2.0.0 | Oxide

    But looks like Excel gave us the config for it if we want to test it

    ===

    I havent been able to get TopRustServers to work yet:

    Top Rust Servers — API: How-to

    ===

    Code:
      "VoteSitesAPI": {
        "TopRustServers": {
          "API Claim Reward (GET URL)": "http://api.toprustservers.com/api/put?plugin=voter&key={0}&uid={1}",
          "API Vote status (GET URL)": "http://api.toprustservers.com/api/get?plugin=voter&key={0}&uid={1}",
          "Vote link (URL)": "http://toprustservers.com/server/{0}"
        }
      }
    ====

    EDIT2: TopRustServers started working, yeah Excel is right, TopRustServers is always timing out / down
     
    Last edited by a moderator: Nov 19, 2017
  9. I use an older version where toprustservers works but it think this was just that toprustservers site was down.
     
  10. i dropped toprustservers support mainly reason that api was always down or they servers timeout.
     
  11. Code:
        "TopRustServers": {
          "API Claim Reward (GET URL)": "http://api.toprustservers.com/api/put?plugin=voter&key={0}&uid={1}",
          "API Vote status (GET URL)": "http://api.toprustservers.com/api/get?plugin=voter&key={0}&uid={1}",
          "Vote link (URL)": "http://toprustservers.com/server/{0}"
    Since plugin issues were resolved not had 1 single issue with top rust servers... apart from when they had internal DB issues which have since been resolved.

    I use the above... No issues encountered so far.
     
  12. So i have this 1 problem i dont know how to fix. After people vote if they do not /claim within like 40 sec of voting they dont get the reward? How can i give them like a 5min timer? So that if they vote they ahve 5 min to do /claim
     
  13. Getting this error when trying to claim a reward.


    Code:
    (19:48:02) | [EasyVote] Player Camomano99 tried to claim a reward but this happened ...
    System.InvalidOperationException: No elements in source list
      at System.Linq.Enumerable.Aggregate[Int32] (IEnumerable`1 source, System.Func`3 func) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player, System.String serverName) [0x00000] in <filename unknown>:0
     
  14. Should be 24hrs :/
     
  15. All i want is to find a solution to extend it. Everyone keeps complaining about it on the server and im about to just remove the whole thing..
     
  16. I have pretty much the same problem but It doesn't seem possible to get the reward ad all. It registers that you voted but no reward is given.
     
  17. Perhaps the config may be missing something?
    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": {
          "TopRustServers": "my key",
          "RustServers": "my key",
          "Beancan": "my key"
        }
      },
      "VoteSitesAPI": {
        "TopRustServers": {
          "API Claim Reward (GET URL)": "http://api.toprustservers.com/api/put?plugin=voter&key={0}&uid={1}",
          "API Vote status (GET URL)": "http://api.toprustservers.com/api/get?plugin=voter&key={0}&uid={1}",
          "Vote link (URL)": "http://toprustservers.com/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}"
        },
        "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}"
        }
      },
      "Rewards": {
        "@": [
          "supply.signal: 1",
          "zlvl-*: 1"
        ],
        "first": [
          "metalblade: 10",
          "metalpipe: 2"
        ],
        "vote3": [
          "pookie.bear: 1",
          "techparts: 4"
        ],
        "vote10": [
          "rp: 1000",
          "cctv.camera: 2",
          "targeting.computer: 2"
        ],
        "vote20": [
          "rp: 2000",
          "tempaddgroup: vip-1d"
        ],
        "vote30": [
          "rp: 10000",
          "tempaddgroup: vip-7d",
          "techparts: 30"
        ]
      },
      "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}"
      }
    }
    The above works every time for all players. Make sure you're not missing this one:
    Code:
        "@": [
          "supply.signal: 1",
          "zlvl-*: 1"
        ],
     
  18. I have exactly the same config just no toprustserver as i thought he removed the support for that
     
  19. top rust server has been working fine for me since the issues with claiming etc were resolved