Skip to content

Commit

Permalink
Move to 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeiger92 committed Nov 12, 2018
1 parent 683f816 commit b8ced94
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 43 deletions.
56 changes: 36 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.tyrannyofheaven.bukkit</groupId>
<artifactId>zPermissions</artifactId>
<version>1.4-SNAPSHOT</version>
<version>1.5-SNAPSHOT</version>
<packaging>jar</packaging>

<name>zPermissions</name>
Expand All @@ -24,8 +24,8 @@
<url>http://maven.tyrannyofheaven.org</url>
</repository>
<repository>
<id>sk89q-mvn2</id>
<url>http://mvn2.sk89q.com/repo</url>
<id>sk89q-maven</id>
<url>http://maven.sk89q.com/repo/</url>
</repository>
<repository>
<id>vault-repo</id>
Expand All @@ -49,9 +49,36 @@
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.sk89q</groupId>
<artifactId>worldguard</artifactId>
<version>5.9</version>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.0.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>js</artifactId>
<groupId>rhino</groupId>
</exclusion>
<exclusion>
<artifactId>jchronic</artifactId>
<groupId>com.sk89q</groupId>
</exclusion>
<exclusion>
<artifactId>truezip</artifactId>
<groupId>de.schlichtherle</groupId>
</exclusion>
<exclusion>
<artifactId>jlibnoise</artifactId>
<groupId>com.sk89q.lib</groupId>
</exclusion>
<exclusion>
<artifactId>dummypermscompat</artifactId>
<groupId>com.sk89q</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-legacy</artifactId>
<version>7.0.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>iconomy</artifactId>
Expand All @@ -69,25 +96,14 @@
<artifactId>commandbook</artifactId>
<groupId>com.sk89q</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.sk89q</groupId>
<artifactId>worldedit</artifactId>
<version>5.6.2</version>
<exclusions>
<exclusion>
<artifactId>js</artifactId>
<groupId>rhino</groupId>
<artifactId>jlibnoise</artifactId>
<groupId>com.sk89q.lib</groupId>
</exclusion>
<exclusion>
<artifactId>jchronic</artifactId>
<artifactId>dummypermscompat</artifactId>
<groupId>com.sk89q</groupId>
</exclusion>
<exclusion>
<artifactId>truezip</artifactId>
<groupId>de.schlichtherle</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down
Binary file removed repo/com/sk89q/worldguard/5.9/worldguard-5.9.jar
Binary file not shown.
9 changes: 0 additions & 9 deletions repo/com/sk89q/worldguard/5.9/worldguard-5.9.pom

This file was deleted.

12 changes: 0 additions & 12 deletions repo/com/sk89q/worldguard/maven-metadata-local.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
import org.tyrannyofheaven.bukkit.zPermissions.ZPermissionsCore;

import com.google.common.collect.Iterables;
import com.sk89q.worldedit.BlockVector;
import com.sk89q.worldedit.bukkit.BukkitWorld;
import com.sk89q.worldguard.WorldGuard;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.protection.ApplicableRegionSet;
import com.sk89q.worldguard.protection.managers.RegionManager;
Expand Down Expand Up @@ -89,9 +92,10 @@ public void shutdown() {
@Override
public Set<String> getRegions(Location location, Player player) {
if (isEnabled()) {
RegionManager rm = worldGuardPlugin.getRegionManager(location.getWorld());

RegionManager rm = WorldGuard.getInstance().getPlatform().getRegionContainer().get(new BukkitWorld(location.getWorld()));
if (rm != null) {
ApplicableRegionSet ars = rm.getApplicableRegions(location);
ApplicableRegionSet ars = rm.getApplicableRegions(BlockVector.toBlockPoint(location.getX(), location.getY(), location.getZ()));
// Note, sorted from high to low priority, i.e. reverse application order
List<ProtectedRegion> sorted = new ArrayList<>();
Iterables.addAll(sorted, ars);
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ description: Superperms implementation with Bukkit database backend
author: ZerothAngel
database: false
load: STARTUP
api-version: 1.13

commands:
permissions:
Expand Down

0 comments on commit b8ced94

Please sign in to comment.