diff --git a/out/artifacts/WorldBossHurt/WorldBossHurt.jar b/out/artifacts/WorldBossHurt/WorldBossHurt.jar deleted file mode 100644 index b434381..0000000 Binary files a/out/artifacts/WorldBossHurt/WorldBossHurt.jar and /dev/null differ diff --git a/src/main/java/com/io/yaohun/worldbosshurt/api/BossHurtAPI.java b/src/main/java/com/io/yaohun/worldbosshurt/api/BossHurtAPI.java new file mode 100644 index 0000000..00c2678 --- /dev/null +++ b/src/main/java/com/io/yaohun/worldbosshurt/api/BossHurtAPI.java @@ -0,0 +1,16 @@ +package com.io.yaohun.worldbosshurt.api; + +import com.io.yaohun.worldbosshurt.Main; +import com.io.yaohun.worldbosshurt.mangage.BossManage; + +public abstract class BossHurtAPI { + + // 判断这个怪是否是世界boss + public static boolean isBossExist(String customName){ + BossManage bossManage = Main.bossManage; + if(bossManage.isCustomNameContains(customName)){ + return true; + } + return false; + } +} diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 0f7c27f..7648fcb 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: WorldBossHurt -main: com.io.yaohun.worldbosshurt.main +main: com.io.yaohun.worldbosshurt.Main version: 1.0.0 commands: bosspz: