Fixes severe bug where changes to player data wouldn't save

This commit is contained in:
Video 2022-09-11 15:33:05 -06:00
parent 26be5d0f44
commit 575568cb05

View File

@ -152,7 +152,7 @@ public class SQLite extends FreedomService
{
try
{
Object[] data = {key, player.getName()};
Object[] data = {key, player.getUuid()};
PreparedStatement statement = connection.prepareStatement(MessageFormat.format("UPDATE players SET {0}=? WHERE uuid=''{1}''", data));
statement = setUnknownType(statement, 1, value);
statement.executeUpdate();