Adds the map
Adds a mod to the list of mods to load on the next server restart and saves the changes to the ModList.txt file. This will not load the mod immediately.
name of the mod to add
Add player to VIP list
player to add
save the list
enable or disable aggressive join
wether it should be enabled or not
clears ban list
clears the map list
Clears the list of mods to loads on the next server restart and saves the changes to the ModList.txt file. This will not unload any currently running mods.
clears VIP list
connects and initializes the query
accepts a single boolean argument (true or false) which toggles debug mode for any loaded extensions when set to true, any scripts will be built with debug symbols enabled, which will make it so errors printed on the server and the clients will contain more useful information about their source.
Remove name/ip/guid from banlist
id type to remove
save the list
Removes the map at offset
Removes a mod from the list of mods to load on the next server restart and saves the changes to the ModList.txt file. This will not unload any currently running mods.
name of the mod to remove
Remove a player from the VIP list
player to remove
gets the amount of players a server can have
Set whether or not the server will send events to the current connection
enable or disable events
dnd the current round, declaring
Game server type and build ID uniquely identify the server, and the protocol it is running.
gets a variable
lists the mods that are available to be added to the mod list
retrieve the banlist
returns the index of the map that is currently being played, and the index of the next map to run.
Returns a section of the map list. At most 100 entries will be returned by the command. To retrieve the full list, perform several mapList.list calls with increasing offset until the server returns 0 entries. (There is an unsolved synchronization problem hidden there: if the map list is edited by another RCON client during this process, then entries may be missed during retrieval. There is no known workaround for this.)
Lists the mods to load on the next server restart. This basically lists all mods present in the ModList.txt file and may not be the same as the list of mods that are currently running.
creates the hashed password from the actual password and the hash
Retrieves a single player by its name
return list of all players on the server, but with zeroed out GUIDs
retrieves multiple players by their name
return a section of the list of VIP players’ name
returns the (1-based) current round number, and total number of rounds before switching map.
Lists all currently loaded / running mods.
get the battlefield server salt
sends the help command to the server
gets the idle duration of a specific client in seconds
name of the player to retrieve idle duration for
initializes the connection
load list of banned players/IPs/GUIDs from file
clears the map list and loads it from disk again
Load list of VIP players from file
Securely logs you in with a hashed password
password to login with
Logout from game server
switches immediately to the next round, without going through the end-of-round sequence.
checks wether a client is dead or alive
name of the player to check
Kick player
player name to kick
kick reason
Kill a player without any stats effect
Move a player to another team and/or squad Only works if player is dead. This command will kill player if forceKill is true
player name to move
kill the player to move?
returns the players ping
name of the player to check
Attempt to activate PunkBuster server module if it currently is inactive
Query whether the PunkBuster server module is active
Send a raw PunkBuster command to the PunkBuster server
command to send
Disconnect from server
attempts to reconnects to the battlefield server
number of tries <= 0 tries to connect forever
timeout in ms between connection attempts
increase timeout after every unsuccessful reconnect try
reloads all currently loaded mods. keep in mind that this can cause significant server and client lag and also crashes as not all mods support reloading
restarts the current round, without going through the end of round sequence
save list of banned players/IPs/GUIDs to file
saves the maplist to disk
Save list of VIP players from file
Send a chat message to players. The message must be less than 128 characters long.
message to send
subset to send message to
retrieves basic serverinformations
sets a variable
Specifies which map to switch to once the current round completes. If there are rounds remaining on the current map, those rounds will be skipped.
sets the tickets a team has to a certain amount
team to set the ticket amount
amount of tickets they should have
Show an obnoxious message on players’ screens for the specified duration. If duration is left out, a default of 10 seconds is assumed. If players are left out, the message will go to all players. The message must be less than 256 characters long.
message to send
duration in seconds to display the message
subset to send message to
creates a new Battlefield instance
sleeps a certain time
Generated using TypeDoc
This symbol shall be used to install a listener for only monitoring
'error'
events. Listeners installed using this symbol are called before the regular'error'
listeners are called.Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no regular'error'
listener is installed.