Bugfix for not saving backpacks

only occurred when there was a broken backpack saved once for a player
This commit is contained in:
GeorgH93 2017-07-14 00:29:48 +02:00
parent 26e4dca589
commit c9dda334ca

View File

@ -187,7 +187,7 @@ protected final void buildQuerys()
queryGetPlayerID = "SELECT `{FieldPlayerID}` FROM `{TablePlayers}` WHERE `{FieldName}`=?;";
queryGetBP += "`{FieldName}`=?;";
}
queryInsertBP = "INSERT INTO `{TableBackpacks}` (`{FieldBPOwner}`,`{FieldBPITS}`,`{FieldBPVersion}`) VALUES (?,?,?);";
queryInsertBP = "REPLACE INTO `{TableBackpacks}` (`{FieldBPOwner}`,`{FieldBPITS}`,`{FieldBPVersion}`) VALUES (?,?,?);";
queryUpdateBP = "UPDATE `{TableBackpacks}` SET `{FieldBPITS}`=?,`{FieldBPVersion}`=?";
if(maxAge > 0)
{