SteamWar/FightSystem
Archiviert
13
1

Prevent players from switching teams
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-06-06 17:55:55 +02:00
Ursprung 1a2eabaea4
Commit 6081c5f565

Datei anzeigen

@ -61,8 +61,10 @@ public class GUI {
}
SWInventory inv = new SWInventory(p, 9, msg.parse("JOIN_REQUEST_TITLE", p));
addTeamRequest(p, inv, 0, Fight.getBlueTeam());
addTeamRequest(p, inv, 8, Fight.getRedTeam());
if(!Fight.getRedTeam().isPlayerInTeam(p))
addTeamRequest(p, inv, 0, Fight.getBlueTeam());
if(!Fight.getBlueTeam().isPlayerInTeam(p))
addTeamRequest(p, inv, 8, Fight.getRedTeam());
inv.open();
}