[STANDALONE] VOTEKICK

[STANDALONE] VOTEKICK

$12.99

Add to Basket

Would you like to have a vote system to kick or ban players? Then, this is helpful for you.

Features

  1. Vote Kick Command (/votekick):

    • Initiates a vote to kick a player from the server.
    • Requires the player ID and a reason for the kick.
    • Checks if a vote is already in progress.
    • Validates the player ID to ensure the player is connected.
    • Checks if the player is in the whitelist to prevent kicking whitelisted players.

  2. Vote Ban Command (/voteban):

    • Initiates a vote to ban a player from the server.
    • Requires the player ID and a reason for the ban.
    • Checks if a vote is already in progress.
    • Validates the player ID to ensure the player is connected.
    • Checks if the player is in the whitelist to prevent banning whitelisted players.

  3. Voting Process:

    • Players can vote "yes" (/yes) or "no" (/no) on the active vote.
    • Tracks the number of "yes" and "no" votes.
    • Displays the current vote count to all players.

  4. Vote Duration:

    • The vote lasts for a configurable duration (default is 60 seconds).
    • Automatically ends the vote after the duration expires.

  5. Vote Outcome:

    • If the majority of votes are "yes", the target player is kicked or banned.
    • If the majority of votes are "no", the vote fails.
    • Notifies all players of the vote outcome.

  6. Ban Duration:

    • Configurable ban duration (default is 10 minutes).
    • Temporarily bans the player and saves the ban information to the database.

  7. Whitelist:

    • Prevents certain players (identified by their Steam identifiers) from being kicked or banned.
    • Configurable whitelist to add or remove identifiers.

  8. Database Integration:

    • Uses mysql-async for database operations.
    • Saves ban information to the database.
    • Checks if a player is banned when they try to join the server.
    • Removes expired bans from the database.
    • Store the information about steam identifier of banned player and from who started the vote to prevent abuse and solve later, time duration, and reason.

  9. Player Connection Check:

    • Validates if the player ID exists and is connected before initiating a vote.
    • Prevents kicking or banning non-existent or disconnected players.
    • Deny banned players connection until time is over.