Update to Worldguard 6.x. Resolves #214.

This is a breaking change for anyone using Worldguard 5.x
This commit is contained in:
drtshock 2015-01-15 13:29:14 -06:00
parent 4d13c9cada
commit 102d13a3f6
2 changed files with 4 additions and 3 deletions

View File

@ -86,12 +86,12 @@
<dependency>
<groupId>com.sk89q</groupId>
<artifactId>worldguard</artifactId>
<version>5.9.1-SNAPSHOT</version>
<version>6.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.sk89q</groupId>
<artifactId>worldedit</artifactId>
<version>5.6.3</version>
<version>6.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>net.ess3</groupId>

View File

@ -16,6 +16,7 @@ import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@ -111,7 +112,7 @@ public class Worldguard {
RegionManager regionManager = wg.getRegionManager(world);
ProtectedCuboidRegion region = new ProtectedCuboidRegion("wgfactionoverlapcheck", minChunk, maxChunk);
Map<String, ProtectedRegion> allregions = regionManager.getRegions();
List<ProtectedRegion> allregionslist = new ArrayList<ProtectedRegion>(allregions.values());
Collection<ProtectedRegion> allregionslist = new ArrayList<ProtectedRegion>(allregions.values());
List<ProtectedRegion> overlaps;
boolean foundregions = false;