The tokens/data used to authenticate with the CFTools Data API.
Optional
options: ClientOptionsAdditional options to configure the client.
The authentication provider used by the client to authenticate with the CFTools Data API.
The cache configuration in use by the client.
The cache manager used by the client to cache responses from the CFTools Data API.
Whether caching is enabled for the client.
The logger used by the client to log messages.
The request client used by the client to make requests to the CFTools Data API.
Whether the account creation API is enabled for the client.
Authenticates with the CFTools Data API and returns the authentication token.
The client authentication token.
Perform multiple GameLabs actions in a single request. The GameLabs mod is required to be installed on the server for these actions to work. This counts for any GameLabs action, including teleporting players, spawning items, and more.
The options to batch post GameLabs actions with.
Set the current time of the world on the server.
The hour
parameter is the hour of the day to set the world time to.
The minute
parameter is the minute of the hour to set the world time to.
The hour must be between 0 and 24, and the minute must be between 0 and 60.
The mod GameLabs is required to be installed on the server for this action to work.
The options to change the world time with.
postGameLabsAction for more information.
Set the current weather of the world on the server.
fogDensity
parameter is a float between 0 and 1, representing the fog density.overcast
parameter is a float between 0 and 1, representing the overcast.rainIntensity
parameter is a float between 0 and 1, representing the rain intensity.windIntensity
parameter is an integer greater than 0, representing the wind intensity.The mod GameLabs is required to be installed on the server for this action to work.
The options to change the world weather with.
postGameLabsAction for more information.
Clear the territory flag of a territory that is currently spawned on the server.
The identifier
parameter is the entity ID of the territory flag to clear.
The mod GameLabs is required to be installed on the server for this action to work.
The options to clear a territory flag with.
postGameLabsAction for more information.
Creates a ban on a banlist. The identifier
parameter can be a CFTools ID
or an IPv4 address. If the identifier
parameter is an AnyPlayerId,
it will be resolved to a CFTools ID before being used in the request.
The options to create a ban with.
Deletes a ban from a banlist.
The options to delete a ban with.
Delete an object that is currently spawned on the server.
The identifier
parameter is the entity ID of the object to delete.
The mod GameLabs is required to be installed on the server for this action to work.
The options to delete an object with.
postGameLabsAction for more information.
Deletes a player from the priority queue list/bucket.
The playerId
parameter can be a CFTools ID or a dynamic player ID.
If the playerId
parameter is a dynamic player ID, it will be resolved to a CFTools ID
before being used in the request.
The options to delete from the priority queue with.
Delete a vehicle that is currently spawned on the server.
The identifier
parameter is the entity ID of the vehicle to delete.
The mod GameLabs is required to be installed on the server for this action to work.
The options to delete a vehicle with.
postGameLabsAction for more information.
Removes a player from the whitelist.
The playerId
parameter can be a CFTools ID or a dynamic player ID.
If the playerId
parameter is a dynamic player ID, it will be resolved to a CFTools ID
before being used in the request.
The options to delete from the whitelist with.
Explode a player that is currently connected to the server.
The target
parameter can be a CFTools ID, a dynamic player ID, or a session id.
If the target
parameter is a dynamic player ID, it will be resolved to a session id
before being used in the request.
The mod GameLabs is required to be installed on the server for this action to work.
The options to explode a player with.
postGameLabsAction for more information.
Explode a vehicle that is currently spawned on the server.
The identifier
parameter is the entity ID of the vehicle to explode.
The mod GameLabs is required to be installed on the server for this action to work.
The options to explode
postGameLabsAction for more information.
Fetches all currently available GameLabs actions. This list will be empty if the GameLabs mod is not installed on the server.
Optional
serverApiId: stringThe server API ID to fetch GameLabs actions for.
The GameLabs actions.
Fetches all dynamic entity events from the GameLabs mod. This list will be empty if the GameLabs mod is not installed on the server.
Optional
serverApiId: stringThe server API ID to fetch GameLabs entity events for.
The GameLabs entity events.
Fetches all dynamic entity vehicles from the GameLabs mod. This list will be empty if the GameLabs mod is not installed on the server.
Optional
serverApiId: stringThe server API ID to fetch GameLabs entity vehicles for.
The GameLabs entity vehicles.
Fetch game-server details from the CFTools Data API. This references game-server entities, and is NOT the scope which allows you to retrieve information about CFCloud instances.
The options to fetch game-server details with.
The game-server details.
Resolves the current client grants. A grant represents a resource (server or banlist) that the client has access to. The client grants are used to determine what actions the client can perform.
The current client grants.
Fetches the player statistics for a specific game-server.
The options to fetch the player statistics with.
The player statistics for the game-server.
Queries the priority queue list/bucket for a specific player.
The playerId
parameter can be a CFTools ID or a dynamic player ID.
If the playerId
parameter is a dynamic player ID, it will be resolved to a CFTools ID
before being used in the request.
The comment
parameter is an optional comment to filter the priority queue list with.
The options to get the priority queue with.
The priority queue list/bucket for the player.
Fetches a session by a player ID. This can be a CFTools ID or a dynamic player ID. If the player ID is a dynamic player ID, it will be resolved to a CFTools ID before being used in the request.
The options to fetch a session by player ID with.
The player session.
Queries the whitelist for a specific player.
The playerId
parameter can be a CFTools ID or a dynamic player ID.
If the playerId
parameter is a dynamic player ID, it will be resolved to a CFTools ID
before being used in the request.
The comment
parameter is an optional comment to filter the whitelist with.
The options to get the whitelist with.
The whitelist for the player.
Heal a player to full health.
The target
parameter can be a CFTools ID, a dynamic player ID, or a session id.
If the target
parameter is a dynamic player ID, it will be resolved to a session id
before being used in the request.
The mod GameLabs is required to be installed on the server for this action to work.
The options to heal a player with.
postGameLabsAction for more information.
Kicks a player that is currently connected to the server. The id
parameter
can be a CFTools ID, a dynamic player ID, or a session id. If the id
parameter
is a dynamic player ID, it will be resolved to a CFTools ID before being used
in the request.
The options to kick a player with.
Kill a player that is currently connected to the server.
The target
parameter can be a CFTools ID, a dynamic player ID, or a session id.
If the target
parameter is a dynamic player ID, it will be resolved to a session id
before being used in the request.
The mod GameLabs is required to be installed on the server for this action to work.
The options to kill a player with.
postGameLabsAction for more information.
Kills the engine of a vehicle that is currently spawned on the server.
The identifier
parameter is the entity ID of the vehicle to kill the engine of.
The mod GameLabs is required to be installed on the server for this action to work.
The options to kill the vehicle engine with.
postGameLabsAction for more information.
This action will mute a player that is currently connected to the server.
The target
parameter can be a CFTools ID, a dynamic player ID, or a session id.
If the target
parameter is a dynamic player ID, it will be resolved to a session id
before being used in the request.
The durationInMinutes
parameter is the amount of time in minutes to mute the player for.
The mod GameLabs is required to be installed on the server for this action to work.
The mod Advanced Groups is required to be installed on the server for this action to work.
The options to mute a player with.
This action will unmute a player that is currently connected to the server.
The target
parameter can be a CFTools ID, a dynamic player ID, or a session id.
If the target
parameter is a dynamic player ID, it will be resolved to a session id
before being used in the request.
The mod GameLabs is required to be installed on the server for this action to work.
The mod Advanced Groups is required to be installed on the server for this action to work.
The options to unmute a player with.
Fetches the leaderboard for a specific game-server.
The options to fetch the leaderboard with.
The leaderboard for the game-server.
Fetches bans from a banlist. The filter
parameter can be a comment,
CFTools ID or an IPv4 address. If the filter
parameter is a string, it will
be ignored in the request. If the filter
parameter is an AnyPlayerId,
it will be resolved to a CFTools ID before being used in the request.
The options to list bans with.
The list of bans.
Resolves a string or AnyPlayerId to a CFTools ID.
The ID to lookup.
Whether the Account Creation API should be used.
The resolved CFTools ID.
Privately messages a player that is currently connected to the server. The id
parameter can be a CFTools ID, a dynamic player ID, or a session id. If the id
parameter is a dynamic player ID, it will be resolved to a CFTools ID before being
used in the request.
The options to message a player with.
Broadcast a message to all players currently connected to the server.
The options to message all players with.
Fetches the player list from the CFTools Data API. This list consists of all players currently connected to the server.
Optional
serverApiId: stringThe server API ID to fetch the player list for.
The player list.
Perform a specified GameLabs action. The GameLabs mod is required to be installed on the server for these actions to work. This counts for any GameLabs action, including teleporting players, spawning items, and more.
The options to post a GameLabs action with.
Posts a player to the priority queue list/bucket.
The playerId
parameter can be a CFTools ID or a dynamic player ID.
If the playerId
parameter is a dynamic player ID, it will be resolved to a CFTools ID
before being used in the request.
expiresAt
parameter is an optional date to expire the player from the priority queue,
if not provided the player will be in the priority queue indefinitely/permanent.comment
parameter is a required comment to add to the priority queue entry.The options to post to the priority queue with.
Posts a player to the whitelist.
The playerId
parameter can be a CFTools ID or a dynamic player ID.
If the playerId
parameter is a dynamic player ID, it will be resolved to a CFTools ID
before being used in the request.
expiresAt
parameter is an optional date to expire the player from the whitelist,
if not provided the player will be in the whitelist indefinitely/permanent.comment
parameter is a required comment to add to the whitelist entry.The options to post to the whitelist with.
Issue an RCon command to the server.
The options to issue an RCon command with.
Refuel a vehicle that is currently spawned on the server.
The identifier
parameter is the entity ID of the vehicle to refuel.
The mod GameLabs is required to be installed on the server for this action to work.
The options to refuel a vehicle with.
postGameLabsAction for more information.
Repair a vehicle that is currently spawned on the server.
The identifier
parameter is the entity ID of the vehicle to repair.
The mod GameLabs is required to be installed on the server for this action to work.
The options to repair a vehicle with.
postGameLabsAction for more information.
Resets the player statistics for a specific game-server.
The options to reset the player statistics with.
Resolves the dynamic player ID to a CFTools ID. This id can be a string, or AnyPlayerId.
The options to resolve the dynamic player ID from.
The resolved CFTools ID.
Resolves target
input to a steam64, used in GameLabs actions (referenceKey
).
target
can be multiple different things, please see GameLabsActionTarget.
The options to resolve the player reference key from.
Optional
serverThe resolved player reference key.
Resolves the server ID from the provided options.
The options to resolve the server ID from.
The resolved server ID.
Fetches server information from the CFTools Data API. This includes information about the server such as the name, description, and more.
Optional
serverApiId: stringThe server API ID to fetch information for.
The server information.
Fetches server statistics from the CFTools Data API. This includes statistics about the server such as the player count, uptime, and more.
Optional
serverApiId: stringThe server API ID to fetch statistics for.
The server statistics.
Change the world weather to sunny/clear on the server.
Optional
serverApiId: stringThe server API ID to change the world weather on.
Spawn on item on a set of [x, y, z] coordinates on the ground.
itemClassName
parameter is the class name of the item to spawn.position
parameter is an array of three numbers, representing the
x, y, and z coordinates respectively.quantity
parameter is the amount of items to spawn.stacked
parameter is a boolean that determines if the items should be stacked.populateItem
parameter is a boolean that determines if the item should be populated.The mod GameLabs is required to be installed on the server for this action to work.
The options to spawn an item on the ground with.
postGameLabsAction for more information.
Spawn an item on a player that is currently connected to the server.
The target
parameter can be a CFTools ID, a dynamic player ID, or a session id.
If the target
parameter is a dynamic player ID, it will be resolved to a session id
before being used in the request.
itemClassName
parameter is the class name of the item to spawn.quantity
parameter is the amount of items to spawn.stacked
parameter is a boolean that determines if the items should be stacked.populateItem
parameter is a boolean that determines if the item should be populated.The mod GameLabs is required to be installed on the server for this action to work.
The options to spawn an item on a player with.
postGameLabsAction for more information.
Strip a player of all items that they currently have.
The target
parameter can be a CFTools ID, a dynamic player ID, or a session id.
If the target
parameter is a dynamic player ID, it will be resolved to a session id
before being used in the request.
The mod GameLabs is required to be installed on the server for this action to work.
The options to strip a player with.
postGameLabsAction for more information.
Teleport a player to a specified position.
The target
parameter can be a CFTools ID, a dynamic player ID, or a session id.
If the target
parameter is a dynamic player ID, it will be resolved to a session id
before being used in the request.
The position
parameter is an array of three numbers, representing the
x, y, and z coordinates respectively.
The mod GameLabs is required to be installed on the server for this action to work.
The options to teleport a player with.
postGameLabsAction for more information.
Unstuck a vehicle that is currently spawned on the server. This action will move the vehicle by a couple of x, and z coordinates to get it unstuck.
The identifier
parameter is the entity ID of the vehicle to unstuck.
The mod GameLabs is required to be installed on the server for this action to work.
The options to unstuck a vehicle with.
postGameLabsAction for more information.
Wipe all AI from the world on the server. This deletes all AI entities from the world, including zombies, animals, and more.
The mod GameLabs is required to be installed on the server for this action to work.
Optional
serverApiId: stringThe server API ID to wipe world AI on.
postGameLabsAction for more information.
Wipe all vehicles from the world on the server. This deletes all vehicle entities from the world, including cars, boats, helicopters, and more.
The mod GameLabs is required to be installed on the server for this action to work.
Optional
serverApiId: stringThe server API ID to wipe world vehicles on.
postGameLabsAction for more information.
Flip a transport that is currently spawned on the server.
The identifier
parameter is the entity ID of the transport to flip.
The mod GameLabs is required to be installed on the server for this action to work.
The mod FlipTransport is required to be installed on the server for this action to work.
The options to flip a transport with.
This action will push a transport that is currently spawned on the server.
identifier
parameter is the entity ID of the transport to push.reverse
parameter is a boolean that determines if the transport should be pushed in reverse.The mod GameLabs is required to be installed on the server for this action to work.
The mod PushTransport is required to be installed on the server for this action to work.
The options to push a transport with.
The entry point for this library. The CFTools client is used to interact with the CFTools Data API and provides methods to perform various actions such as looking up users, listing bans, and sending messages to players. See https://developer.cftools.cloud/documentation/data-api for more information on the CFTools Data API.