From 3562a534c73ea7ea0e50b725ea6692a5cf9ca34b Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 13 Nov 2016 20:51:25 +0100 Subject: [PATCH] Fix loading when WorldGuard is not enabled --- src/main/java/de/epiceric/shopchest/ShopChest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/de/epiceric/shopchest/ShopChest.java b/src/main/java/de/epiceric/shopchest/ShopChest.java index abfba73..a6f33ea 100644 --- a/src/main/java/de/epiceric/shopchest/ShopChest.java +++ b/src/main/java/de/epiceric/shopchest/ShopChest.java @@ -1,7 +1,6 @@ package de.epiceric.shopchest; import com.sk89q.worldguard.bukkit.WorldGuardPlugin; -import com.sk89q.worldguard.protection.managers.storage.StorageException; import de.epiceric.shopchest.config.Config; import de.epiceric.shopchest.config.Regex; import de.epiceric.shopchest.event.ShopReloadEvent; @@ -154,7 +153,7 @@ public class ShopChest extends JavaPlugin { for (World world : getServer().getWorlds()) { worldGuard.getRegionManager(world).load(); } - } catch (StorageException e) { + } catch (Exception e) { getLogger().severe("Failed to reload WorldGuard region manager. WorldGuard support will probably not work!"); debug("Failed to load WorldGuard region manager"); debug(e);