From 956339faf6321962f150ef2433b86befce5c16dd Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 23 Apr 2021 18:44:38 +0200 Subject: [PATCH] Hotfix team creation Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/TeamCommand.java | 1 + src/de/steamwar/bungeecore/sql/Team.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/TeamCommand.java b/src/de/steamwar/bungeecore/commands/TeamCommand.java index b85aeb7..16c9873 100644 --- a/src/de/steamwar/bungeecore/commands/TeamCommand.java +++ b/src/de/steamwar/bungeecore/commands/TeamCommand.java @@ -179,6 +179,7 @@ public class TeamCommand extends BasicCommand { Team.create(args[1], args[2], user); user.setTeam(Team.get(args[1]).getTeamId()); + user.setLeader(true); Message.send("TEAM_CREATE_CREATED", player, args[2]); } diff --git a/src/de/steamwar/bungeecore/sql/Team.java b/src/de/steamwar/bungeecore/sql/Team.java index 6df9073..7eee1e2 100644 --- a/src/de/steamwar/bungeecore/sql/Team.java +++ b/src/de/steamwar/bungeecore/sql/Team.java @@ -53,7 +53,6 @@ public class Team { } public static void create(String kuerzel, String name, SteamwarUser user){ - user.setLeader(true); SQL.update("INSERT INTO Team (TeamKuerzel, TeamName) VALUES (?, ?)", kuerzel, name); }