Developer Guides ‐ v9.x to v10.0.0 API Changes - MarechJ/hll_rcon_tool GitHub Wiki
🧭 You are here : Wiki home / Developer Guides / v9.x to v10.0.0 API Changes
This is a (hopefully) complete list of the API changes that occurred between v9.x
and v10.0.0
.
This exists primarily to help any users who wrote tools to use the API to have a comprehensive source to help upgrade, any subsequent API changes (v10.0.0
-> v10.x.x
) will be documented in those release notes and hopefully be minimal, so please review those if applicable.
Please feel free to help update this if it is incomplete or inaccurate.
-
set_maprotation
rotation
renamed tomap_names
-
async_upload_vips
renamed toupload_vips
-
Removed the old/unused
download_vips
endpoint -
async_upload_vips_result
renamed toupload_vips_result
-
Removed the old/unused
upload_vips_result
endpoint -
do_add_admin
renamed toadd_admin
steam_id_64
renamed toplayer_id
name
renamed todescription
-
do_add_map_to_rotation
renamed toadd_map_to_rotation
- returns
str
(whatever the game server returns which can beSUCCESS
or varying error messages)
- returns
-
do_add_map_to_whitelist
renamed toadd_map_to_votemap_whitelist
-
do_add_maps_to_rotation
renamed toadd_maps_to_rotation
maps
renamed tomap_names
-
do_add_maps_to_whitelist
renamed toadd_maps_to_votemap_whitelist
-
do_add_vip
renamed toadd_vip
steam_id_64
renamed toplayer_id
name
renamed todescription
-
do_ban_profanities
renamed toban_profanities
- returns
bool
- returns
-
do_reconnect_gameserver
renamed toreconnect_gameserver
-
flag_player
steam_id_64
renamed toplayer_id
- added
player_name
-
do_kick
renamed tokick
steam_id_64
renamed toplayer_id
name
renamed toplayer_name
- returns
bool
-
do_message_player
renamed tomessage_player
steam_id_64
renamed toplayer_id
name
renamed toplayer_name
-
do_perma_ban
renamed toperma_ban
steam_id_64
renamed toplayer_id
name
renamed toplayer_name
- returns
bool
- This endpoint no longer blacklists the player you must use a blacklist endpoint if you want to persist the ban in CRCON,
perma_ban
only bans on the game server
-
post_player_comment
steam_id_64
renamed toplayer_id
-
do_punish
renamed topunish
steam_id_64
renamed toplayer_id
name
renamed toplayer_name
- returns
bool
-
do_reconnect_gameserver
renamed toreconnect_gameserver
-
do_remove_admin
renamed toremove_admin
steam_id_64
renamed toplayer_id
-
do_remove_all_vips
renamed toremove_all_vips
-
do_remove_map_from_rotation
renamed toremove_map_from_rotation
-
do_remove_map_from_whitelist
renamed toremove_map_from_votemap_whitelist
-
do_remove_maps_from_rotation
renamed toremove_maps_from_rotation
-
do_remove_maps_from_whitelist
renamed toremove_maps_from_votemap_whitelist
-
do_remove_perma_ban
renamed toremove_perma_ban
ban_log
renamed toplayer_id
- returns
bool
-
do_remove_temp_ban
renamed toremove_temp_ban
steam_id_64
renamed toplayer_id
- Removed
ban_log
-
do_remove_vip
renamed toremove_vip
steam_id_64
renamed toplayer_id
-
do_reset_map_whitelist
renamed toreset_map_votemap_whitelist
-
do_reset_votekick_threshold
renamed toreset_votekick_thresholds
- returns
bool
- returns
-
set_broadcast
msg
renamed tomessage
-
set_name
renamed toset_server_name
-
do_set_map_whitelist
renamed toset_votemap_whitelist
-
do_switch_player_now
renamed toswitch_player_now
player
renamed toplayer_name
- returns
bool
-
do_switch_player_on_death
renamed toswitch_player_on_death
player
renamed toplayer_name
- returns
bool
-
do_temp_ban
renamed totemp_ban
steam_id_64
renamed toplayer_id
player
renamed toplayer_name
- returns
bool
-
do_unban
renamed tounban
steam_id_64
renamed toplayer_id
- This endpoint no longer remvoes blacklists from the player you must use a blacklist endpoint if you want to remove or edit the blacklist in CRCON,
unban
only removes the ban on the game server - The
unblacklist_player
endpoint is functionally equivalent to the old behavior ofdo_unban
-
do_unban_profanities
renamed todo_unban_profanities
- returns
bool
- returns
-
unflag_player
- added
player_id
argument - added
flag
argument
- added
-
do_unwatch_player
renamed tounwatch_player
steam_id_64
renamed toplayer_id
- removed
reason
argument - removed
player_name
argument
-
do_watch_player
renamed towatch_player
steam_id_64
renamed toplayer_id
-
get_admin_ids
- Output changed from
steam_id_64
toplayer_id
- Output changed from
-
get_online_mods
- Output changed from
steam_id_64
toplayer_id
- Output changed from
-
get_ingame_mods
- Output changed from
steam_id_64
toplayer_id
- Output changed from
-
get_players
andget_players_fast
have merged and are onlyget_players
-
get_player_info
player
renamed toplayer_name
-
get_detailed_player_info
player
renamed toplayer_name
-
get_ban
player
renamed toplayer_name
-
get_round_time_remaining
returns the time left in seconds -
set_team_switch_cooldown
returnsbool
-
set_autobalance_threshold
returnsbool
-
set_idle_autokick_time
returnsbool
-
set_max_ping_autokick
returnsbool
-
set_queue_length
returnsbool
num
: renamed tovalue
-
get_vip_slots_num
returnsint
-
set_vip_slots_num
returnsbool
num
: renamed tovalue
-
get_slots
returns a tuple ofint
(current and max players) -
get_votekick_thresholds
returns a list of tupple ofint
pairs (number of players, number of votes required) -
set_autobalance_enabled
returnsbool
bool_
: renamed tovalue
-
set_votekick_enabled
returnsbool
bool_
: renamed tovalue
-
public_info
renamed toget_public_info
- Output changed
current_map
andnext_map
returnPublicInfoMapType
:
class PublicInfoMapType(TypedDict): map: LayerType start: float | None
raw_time_remaining
replaced withtime_remaining
(number of seconds)players
renamedplayer_count_by_team
-
get_standard_broadcast_messages
returns messages as a dict oftime_sec
andmessage
instead of strings formatted astime_sec message
-
server_list
renamed toget_server_list
-
live_scoreboard
renamed toget_live_scoreboard
-
removed
date_scoreboard
-
get_status
- Output changed
nb_players
tocurrent_players
player_count
tomax_players
-
get_vip_ids
- Output changed
steam_id_64
toplayer_id
- Output changed
-
get_perma_bans
,get_temp_bans
,get_bans
andget_ban
all returnGameServerBanType
:class GameServerBanType(TypedDict): type: str name: str | None player_id: str | None timestamp: datetime.datetime | None ban_time: str | None reason: str | None by: str | None raw: str
-
Anywhere a game server log is returned:
player_name
toplayer_name_1
-
Anywhere player stats are returned:
player_id
(database record ID) is removedsteam_id_64
toplayer_id
-
get_player_profile
- Now includes
bans
class GameServerBanType(TypedDict): type: str name: str | None player_id: str | None timestamp: datetime.datetime | None ban_time: str | None reason: str | None by: str | None raw: str
- Now includes
comments
class PlayerCommentType(TypedDict): id: int creation_time: datetime.datetime by: Optional[str] content: str
- The
blacklist
field has changed and is now an array of blacklist records with an associated object for whichblacklist
the ban belongs to. Whenservers
isnull
that indicates it applies to all servers, otherwise it will be a list of server numbers (these are the same server numbers as defined in your compose file, server1
, server2
, etc.)
blacklists": [ { "id": 1, "player_id": "76561198004895814", "reason": "No ban reason provided", "admin_name": "CRCON", "created_at": "2024-07-11T16:51:32.939408+00:00", "expires_at": null, "is_active": true, "blacklist": { "id": 0, "name": "Default", "sync": "kick_only", "servers": null } } ]
- Now includes
is_blacklisted
as a boolean
- Now includes
-
Removed
blacklist_player
endpoint -
Added
get_blacklists
-
Added
get_blacklist
-
Added
create_blacklist
-
Added
edit_blacklist
-
Added
delete_blacklist
-
Added
add_blacklist_record
-
Added
delete_blacklist_record
-
Added
edit_blacklist_record
-
Added
get_blacklist_records
-
Added
expire_blacklist_record
-
unblacklist_player
steam_id_64
renamed toplayer_id
-
get_historical_logs
steam_id_64
renamed toplayer_id
log_type
renamed toaction
from
renamed tofrom_
output
removed, use theget_historical_logs_csv
if you want CSV and not text file
-
Added
get_historical_logs_csv
which is identical toget_historical_logs
but returns the output as a CSV text file rather than JSON- This has identical parameters to
get_historical_logs
- This has identical parameters to
-
The
BanTeamKillOnConnectUserConfig
setting (Settings > TK Ban On Connect
):- Now includes an optional
blacklist_id
if you would like players to be added to a specific ban list if you use this feature
- Now includes an optional
-
The
VacGameBansUserConfig
setting (Settings > VAC/Game Bans
):- Added an optional
blacklist_id
setting if you would like players to be added to a specific ban list if you use this feature - Added an optional
auto_expire
setting if you would like these bans to automatically expire once they are older than your configured threshold
- Added an optional
-
The
RconServerSettingsUserConfig
setting (Settings > CRCON Settings
):- Removed
unban_does_unblacklist
- Removed
unblacklist_does_unban
- Removed
broadcast_temp_bans
- These have been replaced by the blacklist changes and no longer mean anything
- Removed
-
set_welcome_message
msg
renamed tomessage