This guide covers admin commands, RCON, and server management for your TF2 Classified dedicated server on Legion Hosting. For initial setup and configuration, see our TF2 Classified Server Setup Guide.
RCON Setup
RCON (Remote Console) lets you execute server commands remotely. Set an RCON password in your server.cfg:
rcon_password "your_rcon_password_here"
Using RCON In-Game
- Open the developer console (press ~)
- Authenticate:
rcon_password your_rcon_password_here - Run commands:
rcon command_here
Common Admin Commands
These commands can be run via RCON or the GPanel console:
| Command | Description |
|---|---|
changelevel <map> |
Change the current map (e.g., changelevel cp_dustbowl) |
kick <player> |
Kick a player by name |
kickid <userid> |
Kick a player by their user ID |
banid <minutes> <userid> |
Ban a player by user ID (0 = permanent) |
removeid <steamid> |
Remove a ban by Steam ID |
status |
Show server info, connected players, and their IDs |
users |
List connected players with user IDs |
say <message> |
Send a server-wide chat message |
mp_timelimit <minutes> |
Set map time limit |
mp_maxrounds <rounds> |
Set maximum rounds per map |
mp_restartgame 1 |
Restart the current round after 1 second |
mp_autoteambalance <0/1> |
Toggle automatic team balancing |
sv_password <password> |
Set or change the server password (empty to remove) |
maps * |
List all available maps on the server |
Ban Management
Bans are stored in configuration files within the cfg/ directory:
banned_user.cfg— Steam ID bansbanned_ip.cfg— IP address bans
// Ban a player permanently by user ID
banid 0 <userid>
writeid
// Ban by IP address
addip 0 <ip_address>
writeip
// Unban a Steam ID
removeid <steamid>
writeid
SourceMod Admin Setup
If you have SourceMod installed, you can configure admin access:
- Navigate to
tf2classified/addons/sourcemod/configs/admins_simple.ini - Add admin entries in the format:
"STEAM_0:X:XXXXXXX" "99:z" - Restart the server or type
sm_reloadadminsin console
Common SourceMod commands:
| Command | Description |
|---|---|
sm_kick <player> <reason> |
Kick with a reason message |
sm_ban <player> <minutes> <reason> |
Ban with duration and reason |
sm_slay <player> |
Instantly kill a player |
sm_map <map> |
Change the map |
sm_who |
List all players and their admin levels |
Server Management via GPanel
| Action | How To |
|---|---|
| Start/Stop/Restart Server | Use the power controls on GPanel's main page |
| Edit server.cfg | File Manager or SFTP → tf2classified/cfg/server.cfg |
| Edit Map Rotation | File Manager or SFTP → tf2classified/cfg/mapcycle.txt |
| Run Console Commands | Use the Console tab in GPanel |
| Upload Custom Maps | Upload .bsp files to tf2classified/maps/ via SFTP |
Troubleshooting
RCON Not Working
- Verify
rcon_passwordis set inserver.cfg - Ensure you authenticate first with
rcon_passwordin console before usingrconcommands - Check that the password has no special characters that may cause parsing issues
Players Cannot Connect
- Confirm the server is fully started in the GPanel console
- Verify
sv_lanis set to0for internet play - Check that the correct IP and port are being used
Related Articles
Need Help?
If you need further assistance with your TF2 Classified server, our support team is ready to help. Submit a support ticket and we will respond as soon as possible.