From 80ae5a3365c0e1549e550b74c4869316f0c92b07 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Thu, 30 Apr 2020 13:14:32 +0800 Subject: [PATCH] Add configuration read failed notice Former-commit-id: 65a1a2fddde18dd8a207e09291ae96d6c1a159ce --- src/main/java/org/maxgamer/quickshop/QuickShop.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java index 82d63c0ea4..0f8ff60131 100644 --- a/src/main/java/org/maxgamer/quickshop/QuickShop.java +++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java @@ -459,7 +459,12 @@ public void log(@NotNull String s) { */ @Override public void reloadConfig() { - super.reloadConfig(); + try { + super.reloadConfig(); + }catch (Throwable t){ + t.printStackTrace(); + getLogger().severe("Cannot reading the configration, plugin may won't works!"); + } // Load quick variables this.display = this.getConfig().getBoolean("shop.display-items"); this.priceChangeRequiresFee = this.getConfig().getBoolean("shop.price-change-requires-fee");