[RELEASE] Vote Manager
- 
 IntroductionBring democracy to your server before the US discovers oil on it. With Vote Manager, VM for short, you can add basic votes to your game servers. Features: - Each votes logic is clearly separated from VM itself, hopefully we can load custom votes at some point through reflection.
- Comes with 3 different types of votes
- Votekick (!vk) - starts a vote to kick a player
- Votemap (!vm) - starts a vote to switch to a certain map
- Voteskip (!vs) - starts a vote to skip the current map
 
- Votekick (
- veto (!veto) right for Moderators
- Customoize-able minimum amount of players.
- Don’t set it too low or it will be abused.
 
- Adds details about the vote to the profile of the victim (votekick only) to make it easier to recognize certain patterns.
 Download: You are NOT allowed to mirror or hot link this file. 
- 
 @xerxes I have a problem, I implemented it but it does not register the votes when a vote starts. There are always 2 votes YES and 0 votes No, also when voting it tells me that there is no voting in progress. VoteManagerMap File "IsEnabled": true, "TimeToVote": 30, "TimeBetweenReminders": 7 //////////// VoteManagerSkip File "IsEnabled": true, "TimeToVote": 30, "TimeBetweenReminders": 7
- 
 There are always one automantic yes vote for the person that started the vote and if it targets a player an automatic no votes as well. 
 What you describe should never happen if you use the commands in-game.
- 
 @xerxes I understand that, what I do not understand is how many votes you must register for the vote to be approved, since a while ago 7 “yes” votes were registered and nothing happened, when it was supposed to have made the change of map. 
- 
 @kalitos more than 50% of the players connected must vote for yes. 
- 
 @xerxes What function does this line 
 What number should I define here"TimeBetweenReminders": 4
- 
 @kalitos None, its a place holder but the idea is to have periodical reminders that there are votes in progress. 
 I have had to push an emergency fix because iw4ma was changing its API.
- 
 @xerxes I understand, but this topic may sound tired, I still have that problem with the message “no voting is in progress” when someone starts a vote and also the votes are not registered after the voting has started, I checked since they start a vote I vote !n and in the results shows 2 votes !y and 0 votes !n 
- 
 @kalitos This is just not possible if you use the commands in the ingame chat. 
- 
 @xerxes 
 I show the plugin log.[2021-02-27 00:12:13.617 127.0.0.1:28135 INF] Executing command votemap for [Name=Kalitos, NetworkId=1100001000005B6, IP=186.178.49.115, ClientSlot=0] [2021-02-27 00:12:13.628 127.0.0.1:28135 INF] Map (input) is "dome". [2021-02-27 00:12:13.629 127.0.0.1:28135 INF] Started timer for votemap! [2021-02-27 00:12:13.632 127.0.0.1:28135 INF] [^2VM^7] failed to start VoteManager.Votes.Map! [2021-02-27 00:12:13.632 127.0.0.1:28135 INF] [^2VM^7] Object reference not set to an instance of an object. [2021-02-27 00:12:13.632 127.0.0.1:28135 INF] [^2VM^7] Command of Kalitos [2021-02-27 02:04:55.253 127.0.0.1:28135 INF] Executing command voteskip for [Name=Hom Tolland, NetworkId=11000010008EDA8, IP=99.76.48.144, ClientSlot=0] [2021-02-27 02:04:55.258 127.0.0.1:28135 INF] Started timer for voteskip! [2021-02-27 02:04:55.259 127.0.0.1:28135 INF] [^2VM^7] failed to start VoteManager.Votes.Skip! [2021-02-27 02:04:55.259 127.0.0.1:28135 INF] [^2VM^7] Object reference not set to an instance of an object. [2021-02-27 02:04:55.259 127.0.0.1:28135 INF] [^2VM^7] Command of Hom Tolland [2021-02-27 19:04:47.754 127.0.0.1:28135 INF] Executing command votemap for [Name=Maxseale10, NetworkId=11000010008CFAF, IP=108.249.158.146, ClientSlot=5] [2021-02-27 19:04:47.755 127.0.0.1:28135 INF] Map (input) is "terminal". [2021-02-27 19:04:47.755 127.0.0.1:28135 INF] Started timer for votemap! [2021-02-27 19:04:47.756 127.0.0.1:28135 INF] [^2VM^7] failed to start VoteManager.Votes.Map! [2021-02-27 19:04:47.756 127.0.0.1:28135 INF] [^2VM^7] Object reference not set to an instance of an object. [2021-02-27 19:04:47.756 127.0.0.1:28135 INF] [^2VM^7] Command of Maxseale10Additionally, I see that 2 or 3 or more votemap can be started at the same time, I think that it should not allow starting a votemap if there is already one in progress, likewise with voteskip 
- 
 As I said, there is a vote, I choose to vote and it tells me there is no vote in progress  
- 
 @kalitos said in [RELEASE] Vote Manager: Object reference not set to an instance of an object. WTH? Which IW4ma Version do you have? 
- 
 @xerxes Lastest version, 2021.1.24.2 
- 
 @kalitos Can you increase the log level and try to get a stack trace? 
- 
 @xerxes How do I do that 
- 
 Try the latest version or restart your IW4mA if you got it from the plug-in store. It should be fixed there. 
- 
 @xerxes I use the latest version of IXW4Admin, or it refers to the plugin, I suppose it is the latest version since I do not see that it details any modification in the post. Restart it ?, I’ve done it several times already. and it continues the same 
- 
 Of course it refers to the plug-in, what else can you get from the plug-in store? 
- 
 @xerxes Well, I tell you, the shopping cart gives me directly to this forum and this version is what I am using, or where else can I get the plugin or any version updates? 
- 
 It also allows you to add it to your iw4ma instance automatically with automatic updates. 
