mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-26 20:32:25 +00: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;
|
package de.epiceric.shopchest;
|
||||||
|
|
||||||
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
|
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.Config;
|
||||||
import de.epiceric.shopchest.config.Regex;
|
import de.epiceric.shopchest.config.Regex;
|
||||||
import de.epiceric.shopchest.event.ShopReloadEvent;
|
import de.epiceric.shopchest.event.ShopReloadEvent;
|
||||||
@ -154,7 +153,7 @@ public class ShopChest extends JavaPlugin {
|
|||||||
for (World world : getServer().getWorlds()) {
|
for (World world : getServer().getWorlds()) {
|
||||||
worldGuard.getRegionManager(world).load();
|
worldGuard.getRegionManager(world).load();
|
||||||
}
|
}
|
||||||
} catch (StorageException e) {
|
} catch (Exception e) {
|
||||||
getLogger().severe("Failed to reload WorldGuard region manager. WorldGuard support will probably not work!");
|
getLogger().severe("Failed to reload WorldGuard region manager. WorldGuard support will probably not work!");
|
||||||
debug("Failed to load WorldGuard region manager");
|
debug("Failed to load WorldGuard region manager");
|
||||||
debug(e);
|
debug(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user