Bläddra i källkod

attempt to fix decreasing island level

mastercake10 1 år sedan
förälder
incheckning
e87cccd3fe
2 ändrade filer med 12 tillägg och 6 borttagningar
  1. 9 4
      pom.xml
  2. 3 2
      src/main/java/xyz/spaceio/hooks/HookFabledSkyblock.java

+ 9 - 4
pom.xml

@@ -18,8 +18,8 @@
 		</repository>
 		<!-- PlotSquared repo -->
 		<repository>
-			<id>intellectualsites snapshots</id>
-			<url>https://mvn.intellectualsites.com/content/repositories/snapshots/</url>
+			<id>papermc</id>
+			<url>https://repo.papermc.io/repository/maven-public/</url>
 		</repository>
 		<repository>
 			<id>enginehub</id>
@@ -45,6 +45,11 @@
 			<id>spaceio-repo</id>
 			<url>https://repo.spaceio.xyz/repository/maven-public/</url>
 		</repository>
+		<!-- SpaceIO private repo (storing premium plugins) -->
+		<repository>
+			<id>spaceio-private</id>
+			<url>https://repo.spaceio.xyz/repository/maven-private/</url>
+		</repository>
 	</repositories>
 	<dependencies>
 		<!--Spigot API -->
@@ -127,11 +132,11 @@
 			<version>2.6.6.2-SNAPSHOT</version>
 			<scope>provided</scope>
 		</dependency>
-		<!-- FabledSkyblock -->
+		<!-- FabledSkyblock, in spaceio-private -->
 		<dependency>
 			<groupId>com.songoda</groupId>
 			<artifactId>fabledskyblock</artifactId>
-			<version>2.0.0-SNAPSHOT</version>
+			<version>2.5.2</version>
 			<scope>provided</scope>
 		</dependency>
 		<!-- Placeholder API -->

+ 3 - 2
src/main/java/xyz/spaceio/hooks/HookFabledSkyblock.java

@@ -62,8 +62,9 @@ public class HookFabledSkyblock implements SkyblockAPIHook{
 	
 	@Override
 	public void sendBlockAcknowledge(Block block) {
-		// TODO Auto-generated method stub
-		
+		if(block != null && api.getIslandManager().getIslandAtLocation(block.getLocation()) != null) {
+			api.getLevellingManager().updateLevel(api.getIslandManager().getIslandAtLocation(block.getLocation()), block.getLocation());
+		}
 	}
 	
 }