diff --git a/rcon/commands.py b/rcon/commands.py index 68fb54a3..61377dc7 100644 --- a/rcon/commands.py +++ b/rcon/commands.py @@ -584,11 +584,16 @@ def set_votekick_thresholds(self, threshold_pairs: str) -> str: def reset_votekick_thresholds(self) -> bool: return self._str_request(f"resetvotekickthreshold", log_info=True) == SUCCESS - def switch_player_on_death(self, player_name) -> str: - return self._str_request(f"switchteamondeath {player_name}", log_info=True) + def switch_player_on_death(self, player_name) -> bool: + return ( + self._str_request(f"switchteamondeath {player_name}", log_info=True) + == SUCCESS + ) - def switch_player_now(self, player_name) -> str: - return self._str_request(f"switchteamnow {player_name}", log_info=True) + def switch_player_now(self, player_name: str) -> bool: + return ( + self._str_request(f"switchteamnow {player_name}", log_info=True) == SUCCESS + ) def add_map_to_rotation( self, diff --git a/rcon/rcon.py b/rcon/rcon.py index 5f456990..670f27a5 100644 --- a/rcon/rcon.py +++ b/rcon/rcon.py @@ -1128,10 +1128,10 @@ def punish(self, player_name: str, reason: str, by: str) -> bool: ) return res - def switch_player_now(self, player_name, by) -> str: + def switch_player_now(self, player_name: str) -> bool: return super().switch_player_now(player_name) - def switch_player_on_death(self, player_name, by) -> str: + def switch_player_on_death(self, player_name, by) -> bool: return super().switch_player_on_death(player_name) def kick(self, player_name, reason, by, player_id: str | None = None) -> bool: