Răsfoiți Sursa

updated plotsquared hook

MasterCake 5 ani în urmă
părinte
comite
d048654321
2 a modificat fișierele cu 10 adăugiri și 6 ștergeri
  1. 9 2
      pom.xml
  2. 1 4
      src/xyz/spaceio/hooks/HookPlotSquared.java

+ 9 - 2
pom.xml

@@ -4,7 +4,7 @@
 	<modelVersion>4.0.0</modelVersion>
 	<groupId>xyz.spaceio</groupId>
 	<artifactId>CustomOreGen</artifactId>
-	<version>1.3.22-SNAPSHOT</version>
+	<version>1.3.23-SNAPSHOT</version>
 	<repositories>
 		<!-- Spigot repository -->
 		<repository>
@@ -31,6 +31,11 @@
 			<id>codemc-repo</id>
 			<url>https://repo.codemc.org/repository/maven-public/</url>
 		</repository>
+		<!-- PlotSquared repo -->
+		<repository>
+			<id>athion-repo</id>
+			<url>http://ci.athion.net/job/PlotSquared-Breaking/ws/mvn/</url>
+		</repository>
 		<!-- Placeholder repository -->
 		<repository>
 			<id>placeholderapi</id>
@@ -119,13 +124,15 @@
 		<dependency>
 			<groupId>com.github.intellectualsites.plotsquared</groupId>
 			<artifactId>PlotSquared-API</artifactId>
-			<version>4.369-SNAPSHOT</version>
+			<version>latest</version>
+			<scope>provided</scope>
 		</dependency>
 		<!-- PlotSquared Legacy -->
 		<dependency>
 			<groupId>com.plotsquared</groupId>
 			<artifactId>plotsquared-api</artifactId>
 			<version>18.12.21-SNAPSHOT</version>
+			<scope>provided</scope>
 		</dependency>
 		<!-- Lands -->
 		<dependency>

+ 1 - 4
src/xyz/spaceio/hooks/HookPlotSquared.java

@@ -39,10 +39,7 @@ public class HookPlotSquared implements SkyblockAPIHook {
 	}
 	
 	private com.github.intellectualsites.plotsquared.plot.object.Location getPSLocation(Location bukkitLoc) {
-		com.github.intellectualsites.plotsquared.plot.object.Location loc = new com.github.intellectualsites.plotsquared.plot.object.Location();
-		loc.setX(bukkitLoc.getBlockX());
-		loc.setY(bukkitLoc.getBlockY());
-		loc.setZ(bukkitLoc.getBlockZ());
+		com.github.intellectualsites.plotsquared.plot.object.Location loc = new com.github.intellectualsites.plotsquared.plot.object.Location(bukkitLoc.getWorld().getName(), bukkitLoc.getBlockX(), bukkitLoc.getBlockY(), bukkitLoc.getBlockZ());
 		
 		return loc;
 	}