From e1c24293bdc95947a6e4196a468f58b37cd508ed Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Sun, 11 Apr 2021 15:54:58 +0200 Subject: [PATCH] Multiple Team Leaders --- SpigotCore_Main/src/de/steamwar/sql/Team.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/Team.java b/SpigotCore_Main/src/de/steamwar/sql/Team.java index 7504476..7841b23 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/Team.java +++ b/SpigotCore_Main/src/de/steamwar/sql/Team.java @@ -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; } -- 2.39.2