EasyVote

Moved

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

5/5, 14 likes
  1. 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 :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.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0 
    Getting this error
     
  2. Any solution?
     
  3. Does this plugin not work anymore? When i vote and have the correct API it doesn't ./claim them. It just says "checking the voting sites....." Also when i /vote it doesn't list any servers to vote on even though 2 of them are listed exactly how default listed them
     
  4. Request: Bring back admin /vote test cmd. Really useful to check if everything is working as it should. :D
     
  5. Send your config and logs to me.
    Config location -> oxide/config/EasyVote.json
    Logs location -> oxide/logs/EasyVote
    [DOUBLEPOST=1518951924][/DOUBLEPOST]
    Remove that space in Servers -> ServerName1 -> RustServers
    Save config & o.reload EasyVote

    Optional: Also you can remove other useless lines, if you only use RustServers.


    Fixed version here:
    Code:
    "Servers": {
        "ServerName1": {
          "RustServers": "138711:QqoLvqhF3*********cULeqXv25k8f3oH"
        }
      },
    [DOUBLEPOST=1518952220][/DOUBLEPOST]
    Send your config and logs to me.
    Config location -> oxide/config/EasyVote.json
    Logs location -> oxide/logs/EasyVote
     
    Last edited by a moderator: Feb 18, 2018
  6. If you want BETA test up coming admin commands --> OxidePlugins/EasyVote.cs at master · exel80/OxidePlugins · GitHub

    Changelog:
    • Default configs no longer include ServerName1 or ServerName2
    • Added few admin commands
      • voteadmin test - Test reward(s)
      • voteadmin reload - Reload config
      • voteadmin addvotepage (ServerName) (VoteSite ID) (API ID) (API KEY) - Add vote page. If ServerName does not exist, it will create it. VoteSite ID is (0: Beancan | 1: RustServers), if you just type /voteadmin addvotepage then id list will printed in chat.
      • voteadmin delvotepage (ServerName) [Optional: VoteSite ID] - Remove one (or if you leave VoteSite ID empty it will remove all vote pages) vote page(s)
      • voteadmin servers - List all vote page(s)
    EDIT: If you found any bug or want suggestion feature, feel free post it here!
     
  7. The plugin works fine on my server. However i have a question.
    I have set up the vote system by rewarding my players with money every time they vote so they can buy stuff from the shop.
    Vote nr 1 gives 500 Vote nr 2 gives 1000 and so on till Vote nr 10.

    Is there any command to reset the players vote? so that they can start from Vote nr 1?
    I would really want to reset all votes after every wipe, but cant find any command for that./ Thx
     
  8. Is there a tutorial somewhere for this?
     
  9. Well there is no command to reset all votes. But you can manually rename or delete oxide/data/EasyVote.json data json file.

    Well i did really short in FAQ (EasyVote) section. I explain how rewards work. To add vote site (example Rust-Servers) you just have to add ID (can be found from URL) and API KEY (can be found from dashboard) then add it like this:
    Code:
    "Servers": {
        "ServerName1": { <--- Name can be changed what you want
          "RustServers": "ID:KEY"
        }
      },
     
  10. Is there any way to make it possible to implement voting for topg rust server?
    The use a postback.php file to do the work and a external website. I am new to this so i don't have any idea to do so. But i have a website i can use for votes.

    Here are a link to the postback.php file and votecheck system:
    Voting Check
     
  11. I dont really understand how that postback api work, seems to be really complicated :D
     
  12. Wont work it says checking voting websites... and nothing happens all set up correctly and few errors in console? anyone know how to fix this? thanks
    ive tried reinstalling and changing only server API and still nothing
     
  13. Can you post your config to me? You probably miss understand how to place ID and API KEY ;)
    Also remember gave "EasyVote.Use" permission to players
     
  14. Alright here it is

    changed API key charters before i uploaded but is that the correct format?
     

    Attached Files:

  15. this is my console error log
    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>: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
     
  16. You forgot add ID ;) Line 47
    Use this format ID:KEY example 123:asd
    Id can be found from vote link URL (http://rust-servers.net/server/-> 123 <-)
     
  17. Hey thanks for this great plugin too :)
     
  18. returns 0 votes after voting, no rewards. "something went wrong, we got 0 error from website, try again later"

    Code:
     | Failed to call hook 'cmdReward' on plugin 'EasyVote v2.0.34' (IndexOutOfRangeException: Array index is out of range.)at Oxide.Plugins.EasyVote.cmdReward (.BasePlayer player, System.String command, System.String[] args) [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(14:07:46) | Failed to call hook 'cmdReward' on plugin 'EasyVote v2.0.34' (IndexOutOfRangeException: Array index is out of range.)at Oxide.Plugins.EasyVote.cmdReward (.BasePlayer player, System.String command, System.String[] args) [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(14:07:48) | [EasyVote] Error: 0 - Couldn't get an answer for an original name (RustServers)(14:07:48) | [EasyVote] Error: 0 - Couldn't get an answer for an original name (Beancan)(14:07:48) | [EasyVote] Error: 0 - Couldn't get an answer for an original name (TopRustServers)(14:07:52) | [EasyVote] Error: 0 - Couldn't get an answer for PLAYERNAME IS HERE (RustServers)(14:07:52) | [EasyVote] Error: 0 - Couldn't get an answer for PLAYERNAME IS HERE (TopRustServers)(14:07:52) | [EasyVote] Error: 0 - Couldn't get an answer for PLAYERNAME IS HERE (Beancan)
     
    Last edited by a moderator: Mar 10, 2018

  19. Can you send me your Config json?
     
  20. Is it possible with timer to announcment? Nobody knows that its Vote on the server.