Admin commands let you change maps, kick players and send messages while your Battlefield 2 server is running. You can run them from Bropanel, from the game console, or from an RCON tool such as BF2CC.
Running Commands From Bropanel
- 1Log in to Bropanel and select your server.
- 2Open the
Console. - 3Type a command, for example
admin.runNextLevel, and pressEnter.
The console also shows when the server is up, which map is playing, and players joining, leaving and chatting.
Setting Your RCON Password
Your server already has a random RCON password. To set your own:
- 1Log in to Bropanel and select your server.
- 2In the sidebar, go to
Settings. - 3Under
RCON, findRCON Passwordand type the password you want, at least 8 characters. - 4Click
Save & Restartto apply your changes.
Running Commands In Game
- 1Join your server.
- 2Press the
~key to open the console. - 3Type
rcon login yourpasswordwith yourRCON Password, then pressEnter. - 4Run commands with
rcon exec, for examplercon exec admin.kickPlayer 3.
Tools such as BF2CC connect with your server IP, the RCON port shown on the Overview page in Bropanel, and your RCON Password.
Useful Commands
| Command | What it does |
|---|---|
admin.listPlayers | Lists players with their ID numbers |
admin.kickPlayer 3 | Kicks the player with ID 3 |
admin.banPlayer 3 | Bans the player with ID 3 |
admin.runNextLevel | Ends the round and loads the next map |
admin.restartMap | Restarts the current map |
maplist.list | Shows the map rotation |
game.sayAll "Hello" | Sends a message to everyone |
