From d7a2830bd8ca4ed97661eb43234c58094b16c44a Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 4 Sep 2020 18:01:25 +0200 Subject: [PATCH] Allow null schems --- SpigotCore_Main/src/de/steamwar/sql/Fight.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/Fight.java b/SpigotCore_Main/src/de/steamwar/sql/Fight.java index ea46c7c..c0448dc 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/Fight.java +++ b/SpigotCore_Main/src/de/steamwar/sql/Fight.java @@ -26,7 +26,7 @@ import java.sql.Timestamp; public class Fight { private Fight(){} - public static int create(String gamemode, String arena, Timestamp starttime, int duration, int blueleader, int redleader, int blueschem, int redschem, int win, String wincondition){ + public static int create(String gamemode, String arena, Timestamp starttime, int duration, int blueleader, int redleader, Integer blueschem, Integer redschem, int win, String wincondition){ SQL.update("INSERT INTO Fight (GameMode, Arena, StartTime, Duration, BlueLeader, RedLeader, BlueSchem, RedSchem, Win, WinCondition) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", gamemode, arena, starttime, duration, blueleader, redleader,blueschem, redschem, win, wincondition); ResultSet rs = SQL.select("SELECT LAST_INSERT_ID() AS FightID");