Page 1 of 33 12311 ... LastLast
Results 1 to 10 of 326

Thread: Vote Ban

  1. #1
    Plugin Developer
    Join Date
    Oct 2010
    Location
    California
    Posts
    785

    Vote Ban

    Bugs fixed for BF3 and BF4 by community contributors!

    To download the combined BF3/BF4 patched version, click on the Download link below. On that page, click on the "zip" link of the highest numbered released version that you see there. Download the zip. Extract only the CVoteBan.cs file, none of the other files are needed and may actually cause problems. Shutdown Procon, upload the file to your layer and install in Plugins/BF3 and/or Plugins/BF4. If you have a previous install of CVoteBanBF3.cs, remove it, the two versions will conflict with each other if both are enabled! Restart Procon. This is a fresh new version, so if you had settings from the BF3-only version, you will have to re-enter them.

    DOWNLOAD

    If you need the original BF3-only file, use the ZIP file attached to this post.

    WARNING: Be extremely careful when changing In-Game Messages. Adding a newline or changing the number of lines in any way will corrupt all the messages that follow. If you are getting unexpected messages chatted or yelled, check to make sure your In-Game Messages don't have an extra or missing line. When in doubt, reset to default messages and start over with editing them.

    Description

    This plugin allows players to start a vote to ban or kick another player on the server. This is particularly useful to work against all the hackers we have seen so much of lately.

    (Click for larger images!)




    In-Game Commands
    • !voteban <player_name> - Puts in a request to initiate a Vote Ban on the specified player.
    • !votekick <player_name> - Puts in a request to initiate a Vote Kick on the specified player.
    • !yes
      1. Votes YES to ban/kick the player who has a Vote Ban/Kick in progress on them.
      2. Also, agrees to the suggested name after misspelling a name when trying to Vote Ban or Vote Kick.
    • !no
      1. Votes NO to ban the player who has a Vote Ban in progress on them.
      2. Also, disagrees to the suggested name after misspelling a name when trying to Vote Ban or Vote Kick.
    • !cancelvote - Cancels the current vote in progress. This command is only available to players who have an account created and are able to connect to the Procon Layer.


    NOTE: These commands may be redefined by you in the plugin settings.

    Settings

    Vote Ban
    • Enable Vote Ban? - Allows you to enable or disable the ability for players to Vote Ban.
    • Vote Ban Player Count Threshold - The minimum number of players that must be on the server for Vote Banning to be enabled.
    • Start Vote Ban Number - The number of !voteban requests needed to initiate a Vote Ban on the specified player.
    • Vote Ban Pass Percentage - The percentage of YES votes of the total players needed for a Vote Ban to pass.
    • Vote Ban Duration (in minutes) - How long Vote Bans last before they are ended.
    • Vote Ban Progress Display Interval (in seconds) - The recurring number of seconds that the progress of the current Vote Ban is displayed in chat.
    • Ban Type - The type of ban (GUID, Name, IP, or PB GUID) that is issued upon a successful Vote Ban.
    • Ban Duration - How long bans last upon a successful Vote Ban.
    • Ban Length (in minutes) - If Ban Duration is set to Temporary, bans last for this length of time before they expire.
    • Ban Reason Message - Set this to whatever you would like the ban reason to be upon a successful Vote Ban. (Use %player% for the banned player and %reason% for the reason the players Vote Banned the player.)


    Vote Kick
    • Enable Vote Kick? - Allows you to enable or disable the ability for players to Vote Kick.
    • Vote Kick Player Count Threshold - The minimum number of players that must be on the server for Vote Kicking to be enabled.
    • Start Vote Kick Number - The number of !votekick requests needed to initiate a Vote Kick on the specified player.
    • Vote Kick Pass Percentage - The percentage of YES votes of the total players needed for a Vote Kick to pass.
    • Vote Kick Duration (in minutes) - How long Vote Kicks last before they are ended.
    • Vote Kick Progress Display Interval (in seconds) - The recurring number of seconds that the progress of the current Vote Kick is displayed in chat.


    Hack Cry Responder
    • Enable Hack Cry Responder? - Allows you to enable or disable the Hack Cry Responder.
    • Hack Cry Trigger Number - The number of times that the word "hack" needs to be said in chat, recurrently, to trigger the responder.
    • Hack Cry Trigger Response - The server message response sent when the responder is triggered. (Use %vbcommand% and %vkcommand% for your currently set Vote Ban and Vote Kick commands.)
    • Additional Triggers - Any additional words in chat that you would like to trigger the responder.


    Whitelist

    This whitelist guards admins as well as additional players of your choice from being Vote Banned/Kicked. It recognizes players as admins if they have an account created and are able to connect to the Procon Layer.

    • In-Game Names - Allows you to add additional players to the whitelist.
    • Clan Tags - Allows you to add Clan Tags to protect the wearer of any tag from being Vote Banned/Kicked.
    • Action Taken - The action taken (None, Kill, Kick, Temporarily Ban, Permanently Ban) against a player that tries to Vote Ban/Kick a player in the whitelist.
    • Temporary Ban Length (in minutes) - If Action Taken is set to Temporarily Ban, bans last for this length of time before they expire.


    In-Game Commands

    These allow you to customize the in-game commands for this plugin.

    • Vote Ban Commands - The commands used to initiate a Vote Ban.
    • Vote Kick Commands - The commands used to initiate a Vote Kick.
    • Yes Commands - The commands used to vote yes to the vote in progress. (Also used to confirm a suggested player name.)
    • No Commands - The commands used to vote no to the vote in progress. (Also used to deny a suggested player name.)
    • Cancel Vote Commands - The commands used to cancel the vote in progress.


    In-Game Messages

    This allows you to customize all the messages that this plugin sends to the server.

    • Reset Messages? - Use this to retrieve the default list of messages. This is useful when you may have made a mistake and messages start to not show up.
    • Message List - The list containing all the messages that this plugin sends to the server. Be careful not to delete any lines otherwise things will go wrong!


    Future Plans
    1. Add Vote Kick.
    2. Find out how to implement the player name suggestion when a player misspells the name of the one he requests a Vote Ban on.
    3. Add a whitelist so that admins cannot be voted against. Also allow the option to slay, kick, or ban whoever attempts an admin Vote Ban.
    4. Add the option of the Ban Type.


    Known Issues
    Changing the In-Game messages can cause problems if you aren't careful. You MUST NOT change the line-endings or total number of lines. Accidentally adding a newline somewhere will corrupt all the messages the follow. Sometimes the Procon GUI for editing texts adds newlines that you don't intend.


    It is not perfect when it comes to getting a suggested player name but most of the time it is right on the money especially when it comes to the hacker-type names with numerous capital 'i's and lowercase 'L's such as "AIlrBIlAIIljIloA" (I made sure of it).


    (FIXED as of 2.0.1.0) System.Timers seems to be faulty in Procon plugins and some Timers (such as the one that controls the Vote Progress Display every x seconds) are, on rare occasions, unable to be disabled during run time. This causes an infinite loop of any of the timed events in this plugin even when the vote should have ended. The only solution is to restart your Procon running the plugin.

    Conflict - If you are an admin and are using !yes or !no for the In-Game Admin plugin, this plugin will also respond to it with "There is no vote in progress" if there is no vote going on or will vote if there is a vote going on. This conflict should hardly be of any consequence but for a solution you can just redefine the voting commands in the plugin settings.

    When a Vote Kick has already been initiated on a player and someone puts a request in to initiate another Vote Kick later in that round, the number of requests goes below 0 since it isn't reset until a new round.

    Version 1.3.0 - The percentage required for a Vote Ban to be successful is incorrect. I accidentally have it to where it'll take the Vote Kick percentage. Look here to fix... http://www.phogue.net/forumvb/showth...ll=1#post54670

    Change Log

    2.0.1.0 (14-APR-2014)
    • messages no longer spam forever
    • disabling the plugin cancels any vote in progress
    • team and squad chat of commands are now handled
    • fixed problem of player name being used instead of PB GUID for PB GUID bans
    • cancel votekick if player leaves, no change for voteban
    • force reset of all vote variables no matter how the round ends
    • removed "BF3" from messages
    • don't trigger hacker cry response if the trigger words are in the voteban/votekick reason

    1.5.0 (07/04/2012)
    • added Clan Tags to the Whitelist
    • fixed Vote Ban percentage required (paragraph 5 under "Known Issues")
    • added the ability to add more than one of each in-game command
    • voting commands can now have spaces in them
    • added player thresholds for Vote Ban and Vote Kick
    • adjusted suggested player algorithm to where if your substring matches any player name, it'll pick that player and not give you a suggested player name

    1.3.0 (05/17/2012)
    • added the ability to customize all of the messages that this plugin sends to the server
    • fixed paragraphs 3 and 4 under "Known Issues"

    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

    1.1.0 (01/24/2012)
    • added the requirement of the first Vote Ban request to supply a reason
    • added the ability to customize the In-Game commands
    • added the option to enter additional Hack Cry Responder chat triggers
    • added %vbcommand% and %vkcommand% to be used in the response of the Hack Cry Responder
    • added the ability to customize the ban reason from a Vote Ban (use %player% and %reason% wherever you'd like!)

    1.0.0 (01/17/2012)
    • added the option of the Ban Type used in Vote Bans
    • added the option of the Ban Duration used in Vote Bans
    • added a whitelist so that admins and other specified players are guarded against Vote Bans/Kicks
    • added a !cancelvote command usable by admins

    0.8.0 (01/13/2012)
    • fixed the Plugin Enable/Disable messages in the Plugin console (very minor fix - had my previous plugin's messages)
    • fixed the suggested player name algorithm - now works perfectly!

    0.7.5 (01/13/2012)
    • added the ability to enable Vote Kick
    • added an algorithm to suggest a player name upon the misspelling of a player's name while attempting a !voteban or !votekick
    • added the Hack Cry Responder feature
    Attached Files Attached Files
    Last edited by PapaCharlie9; 14-04-2014 at 17:22.

  2. #2
    interesting... I may use this. Will wait for the population to give their opinions on this. Great work Timsad!!

  3. #3
    I have seen this in action on another server, was it released elsewhere already ? Or does someone else have something similar?
    Was a metro server that had a hack on it and we vote banned him off. Took quite a lot of votes, but it did work, but he came back 3 minutes later with a slightly different name.

  4. #4
    Plugin Developer
    Join Date
    Oct 2010
    Location
    California
    Posts
    785
    Quote Originally Posted by badlizz View Post
    I have seen this in action on another server, was it released elsewhere already ? Or does someone else have something similar?
    Was a metro server that had a hack on it and we vote banned him off. Took quite a lot of votes, but it did work, but he came back 3 minutes later with a slightly different name.
    There is another one by XpKiller but it is a bit outdated and doesn't work out very smoothly in BF3. You can't tell what's going on during the voting. For example, I don't believe there is anything that shows the status of the vote in progress. Mine shows this every X (user defined) seconds...

    Vote Progress - Yes Votes: X No Votes: X
    X more Yes votes needed to ban PlayerName...

    It may have been my Metro server that you stumbled upon. Check my signature for details. I installed this plugin on my servers yesterday and already have 5 player Vote Bans on my Operation Metro server.

    EDIT: Oh, but if you believe he came back with a different name, it probably wasn't my server because my plugin bans by GUID only as of now. So, he would have been gone for good unless he used another account.
    Last edited by TimSad; 12-01-2012 at 00:58.

  5. #5
    the vote progress feature is great, but i dont want to give players on my server the ability to ban to avoid power abuse.

    looking forward to the votekick ability.
    Feeding is my job.

  6. #6
    Not sure what the issue is but it's broken. I installed it in /Plugins/BF3 folder on my procon layer. When I initiate a voteban
    !voteban playername

    it says what it's supposed to, but when another player types !yes the plugin responds that there are currently no votes in progress. Also no display interval is being shown. I wish I could provide you with more info but that's it.

  7. #7
    Quote Originally Posted by TimSad View Post

    It may have been my Metro server that you stumbled upon. Check my signature for details. I installed this plugin on my servers yesterday and already have 5 player Vote Bans on my Operation Metro server.

    EDIT: Oh, but if you believe he came back with a different name, it probably wasn't my server because my plugin bans by GUID only as of now. So, he would have been gone for good unless he used another account.
    oh it was you, I think it was a glitch where it kept showing the kill messages after he was already gone, not sure now. Anyway good job Thanks, will probably give this a whirl.

  8. #8
    It would be nice if we could choose the action of the vote..
    eg ban or pb ban, or even a kick.. and with the bans be able to choose if they are temp bans and for xx duration.

    I like the idea of players being able to get rid of trouble hackers if im not around but not really sure i trust them with perm bans..

    some recommended values would be good too, a starting off point..

  9. #9
    Plugin Developer
    Join Date
    Oct 2010
    Location
    California
    Posts
    785
    Quote Originally Posted by HexaCanon View Post
    the vote progress feature is great, but i dont want to give players on my server the ability to ban to avoid power abuse.

    looking forward to the votekick ability.
    I find that it is not much of a problem when having Start Vote Number set to 3 then a fairly high percentage of required !yes votes after that.

    Quote Originally Posted by Dudenell View Post
    Not sure what the issue is but it's broken. I installed it in /Plugins/BF3 folder on my procon layer. When I initiate a voteban
    !voteban playername

    it says what it's supposed to, but when another player types !yes the plugin responds that there are currently no votes in progress. Also no display interval is being shown. I wish I could provide you with more info but that's it.
    What is your Start Vote Number set to? If it is still set to the plugin default of 3 it will take 3 players to type !voteban PlayerName to initiate (start) the Vote Ban. When someone requests a !voteban PlayerName, it'll show in chat how many more are required to get the vote going and then players use !yes or !no to vote.

    Quote Originally Posted by Kilack View Post
    It would be nice if we could choose the action of the vote..
    eg ban or pb ban, or even a kick.. and with the bans be able to choose if they are temp bans and for xx duration.

    I like the idea of players being able to get rid of trouble hackers if im not around but not really sure i trust them with perm bans..

    some recommended values would be good too, a starting off point..
    All on my To Do list...

  10. #10
    Very interested in this but agree that I would prefer to use a temp ban instead of a ban. Additionally need the white list.

    Tim - many are interested in this as a counter to the number of hackers. Thanks for your efforts.
    Woo2

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •