This guide shows you how to kick or ban a player from a Killing Floor 2 server, whether you’re the host of a listen server or an admin on a dedicated server. You’ll learn the exact commands, menu paths, and file edits needed to remove disruptive players and keep them out.
What You’ll Need
- Admin privileges on the server (you are the host, have the admin password, or are listed as an admin in the server config).
- Access to the server console (in-game console or the dedicated server’s command line).
- For permanent bans, write access to the server’s
KFGame.iniorPCServer-KFGame.inifile.
Step-by-Step
Method 1: In-Game Menu (for Hosts and Admins)
- Press Esc to open the pause menu (on a listen server) or the admin menu (on a dedicated server if you have the admin password).
- Click on Admin or Server Admin (depending on your game version). If you are on a dedicated server, you may need to enter the admin password first.
- In the admin menu, you’ll see a list of connected players. Find the player you want to kick or ban.
- Click the player’s name to select them. You’ll see options like Kick and Ban.
- Click Kick to remove them immediately. Click Ban to kick them and add their Steam ID to the ban list.
- If you chose Ban, you may be asked for a duration (e.g., permanent, 1 day, 1 week). Select your preference and confirm.
Method 2: In-Game Console Commands
- Open the console by pressing ~ (tilde) or F1 (depending on your keyboard layout and game version). If the console doesn’t open, you may need to enable it in the game’s settings or launch options.
- Type
adminlogin <password>and press Enter. Replace<password>with the admin password (if you are not already logged in as admin). - To kick a player, type
kick <PlayerName>orkickid <PlayerID>and press Enter. The PlayerID is the number shown in the player list (e.g., when you typeadminplayers). - To ban a player, type
ban <PlayerName>orbanid <PlayerID>and press Enter. This will add them to the ban list and kick them. - For a permanent ban, you can also use
ban <PlayerName> 0(0 means permanent).
Method 3: Editing the Ban List File (Permanent Bans)
- Navigate to the server’s config folder. For a dedicated server, this is usually in the server’s installation directory under
KFGame/Config/orServer/KFGame/Config/. For a listen server, it’s inDocuments/My Games/KillingFloor2/KFGame/Config/. - Open the file
KFGame.ini(orPCServer-KFGame.inifor dedicated servers) with a text editor. - Look for a section called
[Engine.GameReplicationInfo]or[Engine.AccessControl]. If it doesn’t exist, you can add it at the end of the file. - Under that section, add lines like:
BannedPlayers[0]=SteamID64Here BannedPlayers[1]=AnotherSteamID64
Replace
SteamID64Herewith the player’s Steam ID64 (you can find it via Steam profile or third-party sites). - Save the file and restart the server for the changes to take effect.
Common Mistakes
- Using the wrong ID: When using
kickidorbanid, make sure you use the in-game player ID (a small number), not the Steam ID. The in-game ID changes each session. - Not having admin rights: If you’re not logged in as admin, the commands will fail silently. Always run
adminloginfirst. - Banning by name only: Banning by player name is unreliable because names can change. Use the Steam ID for permanent bans.
- Editing the wrong INI file: On dedicated servers, the correct file is often
PCServer-KFGame.ini, notKFGame.ini. Editing the wrong one means the ban won’t apply. - Forgetting to restart: If you manually edit the ban list, you must restart the server for it to read the new entries.
Tips
- Use
adminplayersin the console to see a list of players with their IDs. This makes it easy to target the right player. - For temporary bans, use the in-game menu or
bancommand with a duration (e.g.,ban PlayerName 1440for 1 day in minutes). - Keep a record of banned Steam IDs in a separate text file so you can re-add them if the ban list is wiped.
- If you’re running a dedicated server, consider using a web admin panel or a server management tool that provides a graphical interface for bans.
- Communicate with the player before banning if it’s a minor issue; a warning can resolve conflicts without a ban.
Troubleshooting
- Commands not working: Make sure you are logged in as admin. Type
adminloginand the password. If you don’t know the password, check your server config file forAdminPassword. - Player still appears after kick: The kick might not have registered due to a lag. Try kicking again. If the player reconnects, you may need to ban them.
- Ban not permanent: If you used the in-game menu and selected a temporary ban, it will expire. For permanent bans, use
banidwith 0 or edit the INI file. - Server won’t start after editing INI: You may have a syntax error. Check that the BannedPlayers lines are formatted correctly and that the section header is correct. Remove any extra spaces or characters.
- Can’t find the player in the list: If the player is not showing up in the admin menu, they may have left. Use the console command
adminplayersto see recent players or check the server logs.
Frequently Asked Questions
What’s the difference between kicking and banning?
Kicking removes the player from the server temporarily; they can rejoin immediately. Banning removes them and prevents them from rejoining, either for a set time or permanently, based on their Steam ID.
How do I find a player’s Steam ID?
In the game, you can use the console command adminplayers to see player IDs, but that’s not the Steam ID. To get the Steam ID64, you can ask the player, use a Steam profile lookup tool, or check your server logs (they often log Steam IDs on join).
Can I ban a player by their IP address?
Killing Floor 2 does not have a built-in IP ban feature. However, you can use server-side firewall rules or a third-party server tool to block IPs, but that’s outside the game’s admin commands.
Will a ban carry over to other servers?
No, bans are local to your server. They do not affect other servers or the player’s ability to join other servers.
How do I unban a player?
To unban, you can use the console command unban <PlayerName> or unbanid <PlayerID>. If you edited the INI file, remove the corresponding line and restart the server.
What if I’m not the server host but I’m an admin?
You can still use the admin commands if you have the admin password. Log in with adminlogin and then use the kick/ban commands as described.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Motorola Phone Recovery: How to Recover Data
- Poco X3 GT Dimensity 1100 67W Fast Charging Launched?5.00 min/km
- Flash Converter: What It Is & How to Use It
- Choosing a Pipe Flow Meter for Swirling Flow
- Convert 2D Videos to Oculus Rift VR: How-To
- DRAM Light on Motherboard: Meaning & Fixes5.00 min/km