Jump to content

Vote Ban


ImportBot

Recommended Posts

Originally Posted by Mandizzy*:

 

Found a bug ;-)

 

If a vote is in progress and the guy leaves/gets kicked out in the middle of it, the voting thing goes into a spiral. Also if an admin intervenes and bans the player - the voteban keeps going. Sometimes, it gets stuck altogether and keeps repeating "Server XX more Yes votes needed to ban xxxxxx...".

 

I think you need to add an additional hook into procon to monitor playerLeave messages. If a playerLeave name matches the vote in progress, it should automatically cancel the votekick/ban. That should resolve this issue.

 

Now some feature requests:

 

1. Based on badlizz's comment - can you put in a player threshold perhaps so voteban is disabled if there's less players than the threshold. And optionally display a message why voteban/kick is not working.

 

2. There are some douchebags who would initiate a voteban/kick on themselves just to get a kick or simply troll. Can you also put in something to prevent initiating a vote on themselves or perhaps (optionally) kick them off the server right away with a smart ass message ;-) to teach them.

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 339
  • Created
  • Last Reply

Top Posters In This Topic

Originally Posted by TimSad*:

 

Those bugs that you mentioned I had been aware of. I had all the outcome possibilities stuck in my head. I just kinda stopped working on this plugin and moved on to other things. I'm aware that they could leave before the vote ban succeeds and avoid getting banned. I may release a hot fix to keep the vote going and track the GUID of the person and actually ban the person even if they leave. I know it's a semi-major issue, sorry!

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Papa-schulz*:

 

Found a bug ;-)

 

If a vote is in progress and the guy leaves/gets kicked out in the middle of it, the voting thing goes into a spiral. Also if an admin intervenes and bans the player - the voteban keeps going. Sometimes, it gets stuck altogether and keeps repeating "Server XX more Yes votes needed to ban xxxxxx...".

Hello, my to i ave this bug, plz help is spam the tchat box
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

Hello, my to i ave this bug, plz help is spam the tchat box

It should only last as long as you have the vote ban/kick duration set to (3 by default settings). Is it going on continuously? I haven't seen this happen for me.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

I think that using System.Timers in a Procon plugin is kinda iffy. It's as if sometimes the elapsed event is not triggered which would keep the vote going at times. That means it has nothing to do with the player leaving.

 

The reason I've come to this conclusion is that another plugin that I have running uses System.Timers and gets stuck in a loop sometimes and the only way to resolve it is to restart the Procon Layer. If I find time, I'll see if there's anything I can do about it.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

Yeah, it seems that there is a bug with System.Timers... There is a Timer that I have that is triggered once to end the vote and to end the progress display of the vote (carried out by a second Timer) as well...

 

Code:

private void OnVoteInProgressEnd(object source, ElapsedEventArgs e)
{
  if (voteType == "ban")
  {
    this.ExecuteCommand("procon.protected.send", "admin.say", "The vote to ban " + votedVictim + " has expired!", "all");
    this.ExecuteCommand("procon.protected.send", "admin.say", "The summary of the vote was - Yes Votes: " + yesVotes + " No Votes: " + noVotes, "all");

    for (int i = 0; i < playerBeingVoted.Count; i++)
    {
      if (playerBeingVoted[i] == votedVictim)
        playerBeingVotedCount[i] = 0;
    }
  }
  else if (voteType == "kick")
  {
    this.ExecuteCommand("procon.protected.send", "admin.say", "The vote to kick " + votedVictim + " has expired!", "all");
    this.ExecuteCommand("procon.protected.send", "admin.say", "The summary of the vote was - Yes Votes: " + yesVotes + " No Votes: " + noVotes, "all");

    for (int i = 0; i < playerBeingVoted.Count; i++)
    {
      if (playerBeingVoted[i] == votedVictim)
        playerBeingVotedCount[i] = 0;
    }
  }

  yesVotes = 0;
  noVotes = 0;
  alreadyVoted.Clear();
  this.voteInProgress.Enabled = false;
  this.voteProgressDisplay.Enabled = false;
  voteIsInProgress = false;
}
So, when the vote in progress ends, triggering that event, it disables the Timer that has that event as an elapsed event (this.voteInProgress.Enabled = false;) and also disables the Timer that has the Vote Progress Display as an elapsed event (this.voteProgressDisplay.Enabled = false;). That event is defined as such...

 

Code:

private void OnVoteProgressDisplay(object source, ElapsedEventArgs e)
{
  this.ExecuteCommand("procon.protected.send", "admin.say", "Vote Progress - Yes Votes: " + yesVotes + " No Votes: " + noVotes, "all");
  this.ExecuteCommand("procon.protected.send", "admin.say", (yesVotesNeeded - yesVotes).ToString() + " more Yes votes needed to " + voteType + " " + votedVictim + "...", "all");
}
My guess as to why this Vote Progress Display and Vote End message gets stuck in a loop for you guys sometimes is this... When the vote ends and the timers are disabled, for some reason System.Timers bugs out and doesn't actually disable them. Perhaps it is because it somehow lost the Timer object and the execution of disabling the Timer does nothing. I guess another possibility is that System.Timers doesn't always work without fault in a Procon plugin.

 

So, the only thing you guys can do when this bug occurs is restart your Procon Layer. I wish there was something that I could do to fix it but it seems that it's out of my hands. Sorry! :sad:

* Restored post. It could be that the author is no longer active.
Link to comment
  • 1 month later...

Originally Posted by TimSad*:

 

Updated!

 

1.2.0 (03/29/2012)

  • now bans Vote Ban victims (upon Vote Ban succession) that leave the server before the vote succeeds
  • makes use of the now functioning admin.yell command for a few of the major messages
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by pyroblood*:

 

Is there a way to change the vote option !yes and !no for example to !y or !n, because when i use ingame admin to kick or kill a player, i must confirm the kick or kill with !yes or !no. when i confirm the player was kicked or killed, but in chat comes a message: there is no votingprogress.......

 

thx and syr for my english ^^

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

Is there a way to change the vote option !yes and !no for example to !y or !n, because when i use ingame admin to kick or kill a player, i must confirm the kick or kill with !yes or !no. when i confirm the player was kicked or killed, but in chat comes a message: there is no votingprogress.......

 

thx and syr for my english ^^

Yep! Change the commands in the "In-Game Commands" settings of the plugin. I became aware of this conflict a while ago and it is an easy fix but I just forgot to implement it in that last update. Sorry! :sad:

 

My solution is to have it not display that message only when admins type !yes or !no. Does that sound like a good solution to you? Any input about anything with this plugin is welcome. Thanks! :smile:

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by EBassie*:

 

Hi Timsad,

 

For our servers I changed some lines to be yelled instead of spamming the chat.

 

As Yelling is not so intrusive as it is in BC2 (better position), I changed the votingprogress to be yelled.

This way it won't spam the chat and more players will see it.

 

In the chat is usually a discussion going on why the vote was put in progress.

Now the progress information won't interfere with that discussion

 

So all progress lines are now yelled. The other ones are still say.

 

I also use:

"@vote no" & "@vote yes" for casting the votes, so it don't mess with other plugins. :ohmy:

(also I've seen this as default on many other servers)

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

That sounds reasonable. Perhaps I should have another plugin setting being an array of all the messages throughout each voting process and let the admins decide whether they want to admin.yell or admin.say them. Then, in that case, I could just let the admin change each message. The thing about it is that there are a whopping 30 different messages and some of them triggered in multiple other cases.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by EBassie*:

 

I only changed the following line numbers to yell:

 

703, 714, 733, 734, 913, 940, 971, 998.

 

Those lines are only telling the players the vote is in progress and what the vote standing is.

 

All others remained as they were.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

Will this work on a BC2 server as well, or is it only for BF3?

I was wondering the same thing. I only started developing plugins during BF3. I think that the events that I use (and their parameters passed) are all supported in BC2. Give it a try and tell me what you find out... :smile:
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by TimSad*:

 

Hmm, why i cant get this plugin to work?

 

Just put file into plugins/BF3 ?

Yes, ../plugins/BF3. Did you restart after installing the plugin?

 

In what aspect does it not work? Does it show up in the "Plugins" section? If so, have you enabled any of the voting in the plugin settings?

* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by krov7*:

 

For some reason I don't see any options to change the yell messages, nor do I see them at all when I start a vote. I have updated to v.1.20 and when I !votekick playername the messages still appear in chat, rather than a yell message. How can I fix this?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

For some reason I don't see any options to change the yell messages, nor do I see them at all when I start a vote. I have updated to v.1.20 and when I !votekick playername the messages still appear in chat, rather than a yell message. How can I fix this?

I only set a few of the messages to yell such as the one you see in that image in the original post. I've been debating whether or not I should let you, the admin, take control of each individual message within this plugin.

 

Should I allow the ability to change each message along with the ability to set it to admin.say or admin.yell? There are 30 messages within this plugin, I believe. Some have multiple occurrences, too!

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

Seriously tell me if you guys want to be able to modify each message and decide whether it's admin.say or admin.yell... It'll take a while to go through each line of code with the messages and make the changes and have their corresponding variables replace certain strings of text. I'll definitely do it if you guys think it's worth it.

 

Also, should I allow the ability to have Vote Kick/Ban disabled when there are only X amount of players or lower on? Flyswamper requested this earlier in this thread and I'm just wondering if others would find this useful...

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Apex40000*:

 

Hi TimSad

 

To have the option to change the message from yell/say is a good idea I think personally.

But the ability to have a x amount of players that disable the voteban is a bad idea because if there is a cheater you might find that people start dropping like fly even before you have even been able to kick or ban him.... So the cheater might even be able to get the player count down low enough to not be kicked himself... unless you have a very low player count set…

Hope it makes sense and helps

 

Fmuk apex40000

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

Okay, I'll work on the custom messages throughout the week next week.

 

I'd still like people's opinions on being able to have Vote Kick/Ban disabled until a certain player count (number specified by you) is reached...

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mandizzy*:

 

Yes to admin specified yell/say. I'd go even further to polish it because yell and message to individual players works:

 

- Player name suggestions and confirmation message, send to player only

- Error messages like missing reason etc. - player only

- Voting progress yell/say admin selected

- Keep player's info being vote kicked/banned in memory in case player leaves before conclusion of vote - maybe it already does it IDK

- Give admin the ability to cancelvote any vote in progress

- Admin specified cool down period before someone can initiate another vote to keep trolling to minimum

 

Yes also to admin specified minimum number of players before votes can be initiated - default should be 0 ?

 

Thanks

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TristXD*:

 

Hey, great plugin, its really good. I was hoping you could me work something out, I run it on my Procon layer on my PC but i want to get it onto my Multiplay Battlefield 3 server so my PC doesn't have to be online 24/7 to have this great plugin. Is there any way i could get it running on that server? I've got really simple things running on that server's config, like a message spammer, but is there a way to get this plugin's code running from the server?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Repoman*:

 

Hey, great plugin, its really good. I was hoping you could me work something out, I run it on my Procon layer on my PC but i want to get it onto my Multiplay Battlefield 3 server so my PC doesn't have to be online 24/7 to have this great plugin. Is there any way i could get it running on that server? I've got really simple things running on that server's config, like a message spammer, but is there a way to get this plugin's code running from the server?

Sorry but you can't the plugins from the main battlefields 3 server. They have to be run from the procon server. You may want to look into renting a procon server.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Shakal-hh*:

 

@ TimSad:

 

please post the "start message" also in the normal chat... i have changed the!yes / !no commands to /yes and /no.... but nobody know this when a vote is started

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by johnny5*:

 

Okay, I'll work on the custom messages throughout the week next week.

 

I'd still like people's opinions on being able to have Vote Kick/Ban disabled until a certain player count (number specified by you) is reached...

Not needed.

 

You plugin is fine as it is. The player population know about these things & believe it or not, they dont abuse the votes.

 

Good plugin.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

@ TimSad:

 

please post the "start message" also in the normal chat... i have changed the!yes / !no commands to /yes and /no.... but nobody know this when a vote is started

It uses your currently set yes and no in-game commands...

 

Code:

this.ExecuteCommand("procon.protected.send", "admin.yell", "The vote to ban " + banVictim + " has COMMENCED! Type " + yesCommand + " or " + noCommand + " in chat to vote!");
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Shakal-hh*:

 

It uses your currently set yes and no in-game commands...

 

Code:

this.ExecuteCommand("procon.protected.send", "admin.yell", "The vote to ban " + banVictim + " has COMMENCED! Type " + yesCommand + " or " + noCommand + " in chat to vote!");
Yes but i have changed the yes and no command...

If i vote Starts, the commands only be yelled.

The Most Players dont See this. So they dont know the right commands.

 

I would like to Post the Start Message also in the normal Chat :smile:

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

Yes but i have changed the yes and no command...

If i vote Starts, the commands only be yelled.

The Most Players dont See this. So they dont know the right commands.

 

I would like to Post the Start Message also in the normal Chat :smile:

Ahhh, I see what you are saying. I was thinking of the possibility of people missing the message but just decided to just keep it at yell. When I get around to the next update u can make it a say or yell with whatever length of seconds you want.
* Restored post. It could be that the author is no longer active.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.