geforkt von SteamWar/BungeeCore
Hotfix team creation
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
a2c44718ff
Commit
956339faf6
@ -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]);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren