UUID migration bug fix for database mode.
This commit is contained in:
parent
10d2735ae3
commit
e7e16e88fd
|
|
@ -197,10 +197,18 @@ public class DatabaseDataStore extends DataStore
|
|||
this.refreshDataConnection();
|
||||
|
||||
for(String name : changes.keySet())
|
||||
{
|
||||
try
|
||||
{
|
||||
statement = this.databaseConnection.createStatement();
|
||||
statement.execute("UPDATE griefprevention_playerdata SET name = '" + changes.get(name).toString() + "' WHERE name = '" + name + "';");
|
||||
}
|
||||
catch(SQLException e)
|
||||
{
|
||||
GriefPrevention.AddLogEntry("Unable to convert player data for " + name + ". Skipping.");
|
||||
GriefPrevention.AddLogEntry(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(SQLException e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user