Chalwk

Dynamic Ping Kicker

A ping kicker with limits based on player count.

See the settings below for more.

 

-- config starts --
local PingKicker = {

    -- How often to check player pings (in seconds):
    -- Default: 5s
    --
    check_interval = 5,

    -- Players will be warned this many times before being kicked:
    -- Default: 5
    --
    warnings = 5,

    -- Reset a player's warnings if their ping has been below the current limit for this many seconds:
    -- Default: 20s
    --
    grace_period = 20,

    -- Default ping limit:
    -- Default: 1000
    --
    default_limit = 1000,

    -- Exclude admins from ping kicking?
    -- Default: true
    --
    admin_immunity = true,

    -- Admins with a level >= this level will be excluded from ping kicking.
    -- Default: 1
    --
    admin_level = 1,

    -- Dynamic ping limit based on player count:
    -- Min Players, Max Players, Ping Limit:
    --
    limits = {
        { 1, 4, 750 }, -- 1 to 4 players (if 750+ ping)

        { 5, 8, 450 }, -- 5 to 8 players (if 450+ ping)

        { 9, 12, 375 }, -- 9 to 12 players (if 375+ ping)

        { 13, 16, 200 }     -- 13 to 16 players (if 200+ ping)
    },

    -- This message will be sent to the player when kicked:
    --
    kick_message = 'Ping is too high! Limit: $limit (ms), Your Ping: $ping (ms).',

    -- This message will be sent to the player if their ping has been
    -- below the current limit for the grace period:
    --
    grace_period_expired = 'Grace period expired. Ping warnings reset.',

    -- Send this multi-line message to the player when they're warned:
    --
    warning_message = {
        '--- [ HIGH PING WARNING ] ---',
        'Ping is too high! Limit: $limit (ms), Your Ping: $ping (ms).',
        'Please try to lower it if possible.',
        'Warnings Left: $strikes/$max_warnings'
    }
}
-- config ends --

 

Dynamic Ping Kicker.lua

Enclusion, Java, Kavawuvi and 1 other like this

- I invite you to join my Halo Discord Server.

- Add me on discord: Chalwk#9284
- HSP Repo

- HSP Repo Wiki (new)

Share this post


Link to post
Share on other sites

Tiddy-bits:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.