mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-23 19:16:41 +01:00
Fix loading when WorldGuard is not enabled
This commit is contained in:
parent
334219cbe1
commit
3562a534c7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user