Dieser Commit ist enthalten in:
Ursprung
b5db2a4c70
Commit
38475d75ec
@ -57,11 +57,15 @@ public class JoinListener extends BasicListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void joinEvent(Player p) {
|
private static void joinEvent(Player p) {
|
||||||
if (Config.EventTeamRedID == Config.EventTeamBlueID) {
|
if (Config.EventTeamRedID == 0 && Config.EventTeamBlueID == 0) {
|
||||||
joinNormal(p);
|
joinNormal(p);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int teamId = SteamwarUser.get(p.getUniqueId()).getTeam();
|
int teamId = SteamwarUser.get(p.getUniqueId()).getTeam();
|
||||||
|
if (teamId != Config.EventTeamRedID && teamId != Config.EventTeamBlueID) {
|
||||||
|
teamId = 0;
|
||||||
|
}
|
||||||
if (teamId == Config.EventTeamRedID && MissileWars.getRedTeam().size() < Config.MaximumTeamMembers) {
|
if (teamId == Config.EventTeamRedID && MissileWars.getRedTeam().size() < Config.MaximumTeamMembers) {
|
||||||
MissileWars.getRedTeam().join(p);
|
MissileWars.getRedTeam().join(p);
|
||||||
} else if (teamId == Config.EventTeamBlueID && MissileWars.getBlueTeam().size() < Config.MaximumTeamMembers) {
|
} else if (teamId == Config.EventTeamBlueID && MissileWars.getBlueTeam().size() < Config.MaximumTeamMembers) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren