SteamWar/SpigotCore
Archiviert
13
0

Adding fightplayer fix

Dieser Commit ist enthalten in:
Lixfel 2020-07-04 10:59:24 +02:00
Ursprung 35cad5e64c
Commit 90368b6600

Datei anzeigen

@ -3,6 +3,12 @@ package de.steamwar.sql;
public class FightPlayer { public class FightPlayer {
private FightPlayer(){} private FightPlayer(){}
public static void create(int fightID, int userID, boolean blue, String kit, int kills, boolean isOut){
SQL.update("INSERT INTO FightPlayer (FightID, UserID, Team, Kit, Kills, IsOut) VALUES (?, ?, ?, ?, ?, ?)",
fightID, userID, blue ? 1 : 2, kit, kills, isOut);
}
@Deprecated
public static void create(int fightID, int userID, String kit, int kills, boolean isOut){ public static void create(int fightID, int userID, String kit, int kills, boolean isOut){
SQL.update("INSERT INTO FightPlayer (FightID, UserID, Kit, Kills, IsOut) VALUES (?, ?, ?, ?, ?)", SQL.update("INSERT INTO FightPlayer (FightID, UserID, Kit, Kills, IsOut) VALUES (?, ?, ?, ?, ?)",
fightID, userID, kit, kills, isOut); fightID, userID, kit, kills, isOut);