mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-22 01:58:54 +00:00
catch all error and exception while load magic lib...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
fa9eead0a9
commit
56e0fd8430
@ -90,7 +90,7 @@ public class ConfigManager {
|
||||
fm.toJSONString();
|
||||
plugin.getLogger().info("魔改库功能测试正常...");
|
||||
this.enableMagicLib = true;
|
||||
} catch (final NoClassDefFoundError | NoSuchMethodError | Exception e) {
|
||||
} catch (final Error | Exception e) {
|
||||
plugin.getLogger().warning("+=========================================");
|
||||
plugin.getLogger().warning("| 警告: 启动魔改库失败 将使用GUI商店界面...");
|
||||
plugin.getLogger().warning("+=========================================");
|
||||
|
@ -180,9 +180,13 @@ public class QuickShop extends JavaPlugin {
|
||||
logWatcher.close(); // Closes the file
|
||||
}
|
||||
/* Remove all display items, and any dupes we can find */
|
||||
shopManager.clear();
|
||||
if (shopManager != null) {
|
||||
shopManager.clear();
|
||||
}
|
||||
/* Empty the buffer */
|
||||
database.close();
|
||||
if (database != null) {
|
||||
database.close();
|
||||
}
|
||||
try {
|
||||
this.database.getConnection().close();
|
||||
} catch (final SQLException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user