From 7cdeac451bf78cde58a7d7f034fc1271725bbac6 Mon Sep 17 00:00:00 2001 From: speed <43330808+speedxx@users.noreply.github.com> Date: Mon, 28 Dec 2020 17:39:07 -0500 Subject: [PATCH] SQL fix --- .../java/me/totalfreedom/totalfreedommod/sql/SQLite.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/sql/SQLite.java b/src/main/java/me/totalfreedom/totalfreedommod/sql/SQLite.java index 786d8b84..1da18c92 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/sql/SQLite.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/sql/SQLite.java @@ -270,7 +270,7 @@ public class SQLite extends FreedomService { try { - PreparedStatement statement = connection.prepareStatement("INSERT INTO players VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); + PreparedStatement statement = connection.prepareStatement("INSERT INTO players VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); statement.setString(1, player.getName()); statement.setString(2, FUtil.listToString(player.getIps())); statement.setString(3, FUtil.listToString(player.getNotes())); @@ -284,8 +284,8 @@ public class SQLite extends FreedomService statement.setString(11, FUtil.listToString(player.getItems())); statement.setInt(12, player.getTotalVotes()); statement.setBoolean(13, player.doesDisplayDiscord()); - statement.setString(15, player.getLoginMessage()); - statement.setBoolean(16, player.hasInspection()); + statement.setString(14, player.getLoginMessage()); + statement.setBoolean(15, player.hasInspection()); statement.executeUpdate(); } catch (SQLException e)