From 1b190ff3a49b2906c6790916e8790fa190258ab3 Mon Sep 17 00:00:00 2001 From: Vishal Date: Tue, 21 Jan 2025 22:01:28 +0530 Subject: [PATCH] Updating max_players.py to api 9 --- plugins/utilities.json | 1 + plugins/utilities/max_players.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/utilities.json b/plugins/utilities.json index cfb7fd1..a9f0886 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -331,6 +331,7 @@ } ], "versions": { + "1.1.0": null, "1.0.1": { "api_version": 8, "commit_sha": "2b5c9ee", diff --git a/plugins/utilities/max_players.py b/plugins/utilities/max_players.py index 39d0672..d1c2da2 100644 --- a/plugins/utilities/max_players.py +++ b/plugins/utilities/max_players.py @@ -1,8 +1,6 @@ -# Porting to api 8 made easier by baport.(https://github.com/bombsquad-community/baport) """===========MAX_PLAYERS===========""" -# ba_meta require api 8 -# (see https://ballistica.net/wiki/meta-tag-system) +# ba_meta require api 9 from __future__ import annotations from typing import TYPE_CHECKING @@ -369,4 +367,4 @@ class MaxPlayersPlugin(babase.Plugin): MultiTeamSession.get_max_players = get_max_players GatherWindow.__init__ = __gather_init__ GatherWindow._save_state = _save_state - GatherWindow._restore_state = _restore_state + GatherWindow._restore_state = _restore_state \ No newline at end of file