浏览代码

added plotsquared as hook

mastercake10 5 年之前
父节点
当前提交
f6720b8c96
共有 2 个文件被更改,包括 16 次插入0 次删除
  1. 12 0
      pom.xml
  2. 4 0
      src/xyz/spaceio/customoregen/CustomOreGen.java

+ 12 - 0
pom.xml

@@ -91,6 +91,18 @@
 			<version>51-SNAPSHOT</version>
 			<scope>provided</scope>
 		</dependency>
+		<!-- PlotSquared -->
+		<dependency>
+			<groupId>com.plotsquared</groupId>
+			<artifactId>plotsquared-api</artifactId>
+			<version>18.12.21-SNAPSHOT</version>
+		</dependency>
+		<!-- Lands -->
+		<dependency>
+			<groupId>me.angeschossen.lands</groupId>
+			<artifactId>Lands</artifactId>
+			<version>2.6.6.2-SNAPSHOT</version>
+		</dependency>
 		<!--SpaceIO Metrics -->
 		<dependency>
 			<groupId>de.spaceio</groupId>

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

@@ -32,6 +32,7 @@ import xyz.spaceio.config.JSONConfig;
 import xyz.spaceio.hooks.HookASkyBlock;
 import xyz.spaceio.hooks.HookAcidIsland;
 import xyz.spaceio.hooks.HookBentoBox;
+import xyz.spaceio.hooks.HookPlotSquared;
 import xyz.spaceio.hooks.HookSkyblockEarth;
 import xyz.spaceio.hooks.SkyblockAPIHook;
 import xyz.spaceio.hooks.HookuSkyBlock;
@@ -131,6 +132,9 @@ public class CustomOreGen extends JavaPlugin {
 		} else if (Bukkit.getServer().getPluginManager().isPluginEnabled("SkyBlock")) {
 			skyblockAPI = new HookSkyblockEarth();
 			sendConsole("&aUsing SkyblockEarth as SkyBlock-Plugin");
+		} else if (Bukkit.getServer().getPluginManager().isPluginEnabled("PlotSquared")) {
+			skyblockAPI = new HookPlotSquared();
+			sendConsole("&aUsing PlotSquared as SkyBlock-Plugin");
 		}
 	}