mirror of
https://github.com/geekfrog/PermissionsTime.git
synced 2025-09-08 18:45:38 +00:00
低版本兼容 fix bug
This commit is contained in:
@ -28,7 +28,7 @@ public class SqlManager {
|
||||
}
|
||||
|
||||
public boolean updateDatabase() {
|
||||
if (db != null && db.isOpen()) {
|
||||
if (db != null) {
|
||||
db.close();
|
||||
}
|
||||
if (PluginCfg.USE_MYSQL) {
|
||||
@ -38,7 +38,7 @@ public class SqlManager {
|
||||
db = new SQLite(PluginMain.LOG, "[" + pm.PLUGIN_NAME + "] ", pm.getDataFolder().getAbsolutePath(), "playerData", ".db");
|
||||
pds = new SqlitePlayerDataDao(pm, this);
|
||||
}
|
||||
if(db.open()) {
|
||||
if (db.open()) {
|
||||
try {
|
||||
if (!pds.tableExist()) {
|
||||
pds.creatTable();
|
||||
|
Reference in New Issue
Block a user