mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-02-19 02:11:36 +01:00
Fix bugs with backpack loading
This commit is contained in:
parent
41a74ee758
commit
3231d15886
@ -70,7 +70,7 @@ public SQL(@NotNull Minepacks plugin, @NotNull ConnectionProvider connectionProv
|
|||||||
// Delete old backpacks
|
// Delete old backpacks
|
||||||
try(Connection connection = getConnection())
|
try(Connection connection = getConnection())
|
||||||
{
|
{
|
||||||
DBTools.runStatementWithoutException(connection, queryDeleteOldBackpacks);
|
if(maxAge > 0) DBTools.runStatementWithoutException(connection, queryDeleteOldBackpacks);
|
||||||
if(syncCooldown) DBTools.runStatementWithoutException(connection, queryDeleteOldCooldowns, System.currentTimeMillis());
|
if(syncCooldown) DBTools.runStatementWithoutException(connection, queryDeleteOldCooldowns, System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -96,7 +96,7 @@ else if(fieldName.startsWith("field"))
|
|||||||
{
|
{
|
||||||
fieldName = fieldName.substring("Player".length());
|
fieldName = fieldName.substring("Player".length());
|
||||||
}
|
}
|
||||||
else if(fieldName.startsWith("BP") || fieldName.startsWith("Cd"))
|
else if(fieldName.startsWith("Bp") || fieldName.startsWith("Cd"))
|
||||||
fieldName = fieldName.substring(2);
|
fieldName = fieldName.substring(2);
|
||||||
return plugin.getConfiguration().getDBFields(metadata + "." + fieldName, currentValue);
|
return plugin.getConfiguration().getDBFields(metadata + "." + fieldName, currentValue);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user