Build using WorldGuard-Snapshot (fixes maven)

This commit is contained in:
Sn0wStorm
2015-01-09 01:33:30 +01:00
parent 46f9c9dc26
commit 9139d52089
3 changed files with 18 additions and 22 deletions
-2
View File
@@ -211,10 +211,8 @@ public class P extends JavaPlugin {
try {
try {
Class.forName("com.sk89q.worldguard.bukkit.RegionContainer");
log("Using New WorldGuard!");
wg = new WGBarrelNew();
} catch (ClassNotFoundException e) {
log("Using Old WorldGuard!");
wg = new WGBarrelOld();
}
} catch (Throwable e) {
@@ -25,7 +25,7 @@ public class WGBarrelOld implements WGBarrel {
allows = ApplicableRegionSet.class.getMethod("allows", StateFlag.class, LocalPlayer.class);
canBuild = ApplicableRegionSet.class.getMethod("canBuild", LocalPlayer.class);
} catch (NoSuchMethodException e) {
P.p.errorLog("Failed to Hook WorldGuard for Barrel Open Permissions!");
P.p.errorLog("Failed to Hook WorldGuard for Barrel Open Permissions! Opening Barrels will NOT work!");
P.p.errorLog("Brewery was tested with version 5.8 to 6.0 of WorldGuard!");
P.p.errorLog("Disable the WorldGuard support in the config and do /brew reload");
e.printStackTrace();