mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge branch 'sql-fix' into paldiu-local
This commit is contained in:
commit
fbf2972006
@ -270,7 +270,7 @@ public class SQLite extends FreedomService
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
PreparedStatement statement = connection.prepareStatement("INSERT INTO players VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
|
PreparedStatement statement = connection.prepareStatement("INSERT INTO players VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
|
||||||
statement.setString(1, player.getName());
|
statement.setString(1, player.getName());
|
||||||
statement.setString(2, FUtil.listToString(player.getIps()));
|
statement.setString(2, FUtil.listToString(player.getIps()));
|
||||||
statement.setString(3, FUtil.listToString(player.getNotes()));
|
statement.setString(3, FUtil.listToString(player.getNotes()));
|
||||||
@ -284,8 +284,8 @@ public class SQLite extends FreedomService
|
|||||||
statement.setString(11, FUtil.listToString(player.getItems()));
|
statement.setString(11, FUtil.listToString(player.getItems()));
|
||||||
statement.setInt(12, player.getTotalVotes());
|
statement.setInt(12, player.getTotalVotes());
|
||||||
statement.setBoolean(13, player.doesDisplayDiscord());
|
statement.setBoolean(13, player.doesDisplayDiscord());
|
||||||
statement.setString(15, player.getLoginMessage());
|
statement.setString(14, player.getLoginMessage());
|
||||||
statement.setBoolean(16, player.hasInspection());
|
statement.setBoolean(15, player.hasInspection());
|
||||||
statement.executeUpdate();
|
statement.executeUpdate();
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
|
Loading…
Reference in New Issue
Block a user