Update WorldGuard integration (#457)
This commit is contained in:
parent
904c304666
commit
435613d720
12
pom.xml
12
pom.xml
|
|
@ -63,7 +63,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.sk89q.worldguard</groupId>
|
<groupId>com.sk89q.worldguard</groupId>
|
||||||
<artifactId>worldguard-legacy</artifactId>
|
<artifactId>worldguard-legacy</artifactId>
|
||||||
<version>7.0.0-20181117.063337-9</version>
|
<version>7.0.0-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
|
|
@ -83,16 +83,6 @@
|
||||||
<artifactId>bstats-bukkit</artifactId>
|
<artifactId>bstats-bukkit</artifactId>
|
||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.sk89q.worldedit</groupId>
|
|
||||||
<artifactId>worldedit-core</artifactId>
|
|
||||||
<version>7.0.0-20181118.055910-28</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.sk89q.worldguard</groupId>
|
|
||||||
<artifactId>worldguard-core</artifactId>
|
|
||||||
<version>7.0.0-20181117.063337-9</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--Vault dependency-->
|
<!--Vault dependency-->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class WorldGuardWrapper
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BukkitPlayer localPlayer = new BukkitPlayer(this.worldGuard, creatingPlayer);
|
BukkitPlayer localPlayer = new BukkitPlayer(this.worldGuard, creatingPlayer);
|
||||||
World world = WorldGuard.getInstance().getPlatform().getWorldByName(lesserCorner.getWorld().getName());
|
World world = WorldGuard.getInstance().getPlatform().getMatcher().getWorldByName(lesserCorner.getWorld().getName());
|
||||||
|
|
||||||
if(new RegionPermissionModel(localPlayer).mayIgnoreRegionProtection(world)) return true;
|
if(new RegionPermissionModel(localPlayer).mayIgnoreRegionProtection(world)) return true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user