2525)
2626from rcon .models import PlayerID , PlayerOptins , enter_session
2727from rcon .player_history import get_player
28- from rcon .rcon import CommandFailedError , Rcon , get_rcon
28+ from rcon .rcon import HLLCommandFailedError , Rcon , get_rcon
2929from rcon .types import (
3030 PlayerProfileType ,
3131 StructuredLogLineWithMetaData ,
@@ -202,15 +202,15 @@ def format_map_vote(
202202 join_char = "\n " ,
203203 )
204204 text .append (f"OFFENSIVES:\n { vote_options } " )
205- if len (categorized [maps .GameMode .CONTROL ]):
205+ if len (categorized [maps .GameMode .SKIRMISH ]):
206206 vote_options = VoteMap .join_vote_options (
207207 selection = categorized [maps .GameMode .SKIRMISH ],
208208 maps_to_numbers = maps_to_numbers ,
209209 ranked_votes = ranked_votes ,
210210 total_votes = total_vote_counts ,
211211 join_char = "\n " ,
212212 )
213- text .append (f"CONTROL SKIRMISHES:\n { vote_options } " )
213+ text .append (f"SKIRMISHES:\n { vote_options } " )
214214
215215 return "\n \n " .join (text )
216216
@@ -443,7 +443,7 @@ def is_time_for_reminder(self) -> bool:
443443 return False
444444
445445 def _get_optin_players (self ) -> List [Tuple [str , str ]]:
446- online_players = self ._rcon .get_playerids ()
446+ online_players = self ._rcon .get_player_ids ()
447447 online_player_ids = [player_id for _ , player_id in online_players ]
448448
449449 # No players online
@@ -530,7 +530,7 @@ def send_reminder(self, force: bool = False) -> ActionResult:
530530 player_id = player_id ,
531531 message = reminder_message ,
532532 )
533- except CommandFailedError :
533+ except HLLCommandFailedError :
534534 logger .warning ("Unable to message %s" , name )
535535
536536 self .set_last_reminder_time ()
@@ -902,7 +902,7 @@ def __suggest_new_selection(
902902 categorized_maps [maps .GameMode .OFFENSIVE ], num_offensive_options
903903 )
904904 skirmishes_control : list [maps .Layer ] = self .__get_random_map_selection (
905- categorized_maps [maps .GameMode .CONTROL ], num_skirmish_control_options
905+ categorized_maps [maps .GameMode .SKIRMISH ], num_skirmish_control_options
906906 )
907907
908908 if (
@@ -916,7 +916,7 @@ def __suggest_new_selection(
916916 offensives = []
917917
918918 if not allow_consecutive_skirmishes and current_map .game_mode in (
919- maps .GameMode .CONTROL ,
919+ maps .GameMode .SKIRMISH ,
920920 maps .GameMode .PHASED ,
921921 maps .GameMode .MAJORITY ,
922922 ):
0 commit comments