Pārlūkot izejas kodu

added hook for a new skyblock plugin

MasterCake 5 gadi atpakaļ
vecāks
revīzija
05020430a6
2 mainītis faili ar 34 papildinājumiem un 6 dzēšanām
  1. 30 6
      pom.xml
  2. 4 0
      src/xyz/spaceio/customoregen/CustomOreGen.java

+ 30 - 6
pom.xml

@@ -4,7 +4,7 @@
 	<modelVersion>4.0.0</modelVersion>
 	<groupId>xyz.spaceio</groupId>
 	<artifactId>CustomOreGen</artifactId>
-	<version>1.3.13-SNAPSHOT</version>
+	<version>1.3.14-SNAPSHOT</version>
 	<repositories>
 		<!-- Spigot repository -->
 		<repository>
@@ -32,15 +32,20 @@
 			<url>https://repo.codemc.org/repository/maven-public/</url>
 		</repository>
 		<!-- Placeholder repository -->
-        <repository>
-            <id>placeholderapi</id>
-            <url>http://repo.extendedclip.com/content/repositories/placeholderapi/</url>
-        </repository>
+		<repository>
+			<id>placeholderapi</id>
+			<url>http://repo.extendedclip.com/content/repositories/placeholderapi/</url>
+		</repository>
 		<!-- SpaceIO repository -->
 		<repository>
 			<id>spaceio-snapshots</id>
 			<url>https://hub.spaceio.xyz/repository/maven-snapshots/</url>
 		</repository>
+		<!-- SpaceIO private repository -->
+		<repository>
+			<id>private-snapshots</id>
+			<url>https://hub.spaceio.xyz/repository/private-snapshots/</url>
+		</repository>
 	</repositories>
 	<dependencies>
 		<!--Spigot API -->
@@ -110,6 +115,13 @@
 			<version>0.0.15-SNAPSHOT</version>
 			<scope>provided</scope>
 		</dependency>
+		<!-- SpaceSkyblock -->
+		<dependency>
+			<groupId>xyz.spaceio.skyblock</groupId>
+			<artifactId>SpaceSkyblock</artifactId>
+			<version>1.0.0</version>
+			<scope>provided</scope>
+		</dependency>
 		<!-- PlotSquared -->
 		<dependency>
 			<groupId>com.plotsquared</groupId>
@@ -127,7 +139,7 @@
 			<groupId>me.clip</groupId>
 			<artifactId>placeholderapi</artifactId>
 			<version>2.0.6</version>
-        </dependency>
+		</dependency>
 		<!--SpaceIO Metrics -->
 		<dependency>
 			<groupId>de.spaceio</groupId>
@@ -190,4 +202,16 @@
 			</plugin>
 		</plugins>
 	</build>
+	<distributionManagement>
+		<repository>
+			<id>spaceio-releases</id>
+			<name>releases</name>
+			<url>https://hub.spaceio.xyz/repository/maven-releases/</url>
+		</repository>
+		<snapshotRepository>
+			<id>spaceio-snapshots</id>
+			<name>snapshots</name>
+			<url>https://hub.spaceio.xyz/repository/maven-snapshots/</url>
+		</snapshotRepository>
+	</distributionManagement>
 </project>

+ 4 - 0
src/xyz/spaceio/customoregen/CustomOreGen.java

@@ -35,6 +35,7 @@ import xyz.spaceio.hooks.HookBentoBox;
 import xyz.spaceio.hooks.HookIslandWorld;
 import xyz.spaceio.hooks.HookPlotSquared;
 import xyz.spaceio.hooks.HookSkyblockEarth;
+import xyz.spaceio.hooks.HookSpaceSkyblock;
 import xyz.spaceio.hooks.HookSuperiorSkyblock;
 import xyz.spaceio.hooks.SkyblockAPIHook;
 import xyz.spaceio.misc.NamePlaceholder;
@@ -148,6 +149,9 @@ public class CustomOreGen extends JavaPlugin {
 		}else if (Bukkit.getServer().getPluginManager().isPluginEnabled("SuperiorSkyblock2")) {
 			skyblockAPI = new HookSuperiorSkyblock();
 			sendConsole("&aUsing SuperiorSkyblock2 as SkyBlock-Plugin");
+		}else if (Bukkit.getServer().getPluginManager().isPluginEnabled("SpaceSkyblock")) {
+			skyblockAPI = new HookSpaceSkyblock();
+			sendConsole("&aUsing SpaceSkyblock as SkyBlock-Plugin");
 		} else {
 			sendConsole("§cYou are not using any skyblock plugin! This plugin only works with a listed skyblock plugin! (check documentations)");
 			Bukkit.getPluginManager().disablePlugin(this);