Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Commit

Permalink
Add configuration read failed notice
Browse files Browse the repository at this point in the history
Former-commit-id: 65a1a2f
  • Loading branch information
Ghost-chu committed Apr 30, 2020
1 parent ce667f1 commit 80ae5a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/maxgamer/quickshop/QuickShop.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 80ae5a3

Please sign in to comment.