From BZFlagWiki
Revision as of 22:31, 15 February 2017 by Zehra (Talk | contribs) (Command Line Options: added wiki table)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

BZAdmin is a text-only client for BZFlag. It is primarily meant to be a tool for server administrators, but it can also be used for other things. Read the man page for more details.

When you start BZAdmin without any command line options other than callsign and hostname a simple curses-based user interface will be started (unless you built BZAdmin without curses support). This interface is divided into three rectangles; the output window (which covers almost all of the terminal), the target window, and the input window.

The curses user interface also has a simple menu system where you can edit the server variables (if you are an admin) and see a player list. If you are an admin you can also see the IP addresses in the player list, if you have sent a /playerlist command. The menu shows up when you hit the F2 key. It only covers the upper half of the screen, so you can still see what's going on in the game. You can navigate through the menu with the up and down arrow keys, and use the enter key to select submenus and other menu items. If you hit F2 again the command prompt will regain keyboard focus, but the menu will still be visible. If you hit F2 a third time the menu will go away.

Running BZAdmin[edit]

BZAdmin is run from the command line with its required arguments, a callsign and a server:

Please note: fields surrounded by brackets e.g. "[field]" are optional

bzadmin callsign[:password]@server[:port]


On specific platforms for the callsign "example" with a password of "password" accessing the server at port 5158:


Open up a command prompt (start -> run -> "cmd") and type:

"C:\Program Files\BZFlag2.4.0_32Bit\bzadmin.exe""

Mac OS X[edit]

Open up a terminal (/Applications/Utilities/ and type:



Open up a terminal and type:


Command Line Options[edit]

Command Description
-help This will display a help message including a list of command line options.
-hide msgtype{,msgtype}* Tell bzadmin not to show these message types. The available message types are: chat, join, kill, leave, pause, ping, rabbit, and spawn. By default chat, join, kill, leave, pause, and rabbit are shown.
-show msgtype{,msgtype}* Tell bzadmin to show these message types. See -hide for a list of available message types. If a message type is listed both in -show and -hide it will not be shown.
-ui {curses | stdboth | stdin | stdout} Select the user interface that you want. The curses interface is the default, and it is described above. The stdin interface reads user commands from the standard in stream and sends them to the server. All server output is ignored. The stdout interface prints all server output to the standard out stream. All user input is ignored. The stdboth interface is a combination of stdin and stdout - it prints server output to the standard out stream, and reads user commands from the standard in stream.

Other Examples[edit]

Join the game on localhost, port 5154, using the callsign 'admin'.

bzadmin admin@localhost:5154

Connect to the server at localhost and ban the IP for 2 hours.

bzadmin admin@localhost "/password secretpass" "/ban 2h test"

Connect to and print all server messages that contain 'magicword'.

bzadmin -ui stdout | grep magicword