SteamWar/SpigotCore
Archiviert
13
0

Multiple Team Leaders

Dieser Commit ist enthalten in:
zOnlyKroks 2021-04-11 15:54:58 +02:00
Ursprung 75681b2576
Commit e1c24293bd

Datei anzeigen

@ -28,21 +28,19 @@ public class Team {
private final int teamId;
private final String teamKuerzel;
private final String teamName;
private final int teamLeader;
private final String teamColor;
private static final Team pub = new Team(0, "PUB", "Öffentlich", 0, "8");
private static final Team pub = new Team(0, "PUB", "Öffentlich", "8");
private Team(int teamId, String teamKuerzel, String teamName, int teamLeader, String teamColor){
private Team(int teamId, String teamKuerzel, String teamName, String teamColor){
this.teamId = teamId;
this.teamKuerzel = teamKuerzel;
this.teamName = teamName;
this.teamLeader = teamLeader;
this.teamColor = teamColor;
}
private Team(ResultSet rs) throws SQLException {
this(rs.getInt("TeamID"), rs.getString("TeamKuerzel"), rs.getString("TeamName"), rs.getInt("TeamLeader"), rs.getString("TeamColor"));
this(rs.getInt("TeamID"), rs.getString("TeamKuerzel"), rs.getString("TeamName"), rs.getString("TeamColor"));
}
public static Team get(int id){
@ -70,10 +68,6 @@ public class Team {
return teamName;
}
public int getTeamLeader() {
return teamLeader;
}
public String getTeamColor() {
return teamColor;
}