Inspired by SourceMod plugins Very Basic High Ping Kicker and High Ping Kicker
-
Install CounterStrike Sharp and Metamod:Source.
-
Download HighPingKicker.zip from the releases section.
-
Unzip the archive and upload it to the game server.
-
Start the server and wait for the configuration file to be generated.
-
Edit the configuration file with the parameters of your choice.
When the plugin is first loaded, the following config will be generated in counterstrikesharp/configs/plugins/HighPingKicker/HighPingKicker.json
{
"max_ping": 150,
"max_warnings": 5,
"check_interval": 20,
"show_warnings": true,
"show_public_kick_message": true,
"warning_message": "You will be kicked for excessive ping. You have {WARN} out of {MAXWARN} warnings.",
"kick_message": "{NAME} has been kicked due to excessive ping.",
"grace_period_seconds": 90,
"whitelist": [],
"EnableDebug": false,
"ConfigVersion": 2,
}
The whitelist allows you to exclude specific players from being kicked for high ping. Add SteamID64 values to the whitelist array:
{
"whitelist": [
"76561199000000000",
"76561299000000000",
"76561399000000000"
]
}
- Go to SteamID.xyz
- Enter the player's Steam profile URL or Steam username
- Copy the SteamID64 value (17-digit number starting with 765611...)
Message type | Broadcast to | Default |
---|---|---|
Warning message | The player being warned | You will be kicked for excessive ping. You have {WARN} out of {MAXWARN} warnings. |
Kick message | Everyone | {NAME} has been kicked due to excessive ping. |
- {NAME}
- {WARN}
- {MAXWARN}
- {PING}
- {MAXPING}