Update WorldGuard integration (#457)
This commit is contained in:
parent
904c304666
commit
435613d720
12
pom.xml
12
pom.xml
|
|
@ -63,7 +63,7 @@
|
|||
<dependency>
|
||||
<groupId>com.sk89q.worldguard</groupId>
|
||||
<artifactId>worldguard-legacy</artifactId>
|
||||
<version>7.0.0-20181117.063337-9</version>
|
||||
<version>7.0.0-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
|
|
@ -83,16 +83,6 @@
|
|||
<artifactId>bstats-bukkit</artifactId>
|
||||
</exclusion>
|
||||
</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>
|
||||
<!--Vault dependency-->
|
||||
<dependency>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class WorldGuardWrapper
|
|||
try
|
||||
{
|
||||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user