From 3276813674bfaabd037af0ea5435df61d2744133 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 25 Mar 2023 09:45:06 -0700 Subject: [PATCH] Switch to use annotations for plugin.yml --- pom.xml | 5 +++++ .../java/world/bentobox/acidisland/AcidIslandPladdon.java | 7 +++++++ src/main/resources/plugin.yml | 6 ------ 3 files changed, 12 insertions(+), 6 deletions(-) delete mode 100644 src/main/resources/plugin.yml diff --git a/pom.xml b/pom.xml index 2928956..3cf314c 100644 --- a/pom.xml +++ b/pom.xml @@ -142,6 +142,11 @@ ${spigot.version} provided + + org.spigotmc + plugin-annotations + 1.2.3-SNAPSHOT + org.mockito diff --git a/src/main/java/world/bentobox/acidisland/AcidIslandPladdon.java b/src/main/java/world/bentobox/acidisland/AcidIslandPladdon.java index 569bf2d..6e2155c 100644 --- a/src/main/java/world/bentobox/acidisland/AcidIslandPladdon.java +++ b/src/main/java/world/bentobox/acidisland/AcidIslandPladdon.java @@ -1,8 +1,15 @@ package world.bentobox.acidisland; +import org.bukkit.plugin.java.annotation.dependency.Dependency; +import org.bukkit.plugin.java.annotation.plugin.ApiVersion; +import org.bukkit.plugin.java.annotation.plugin.Plugin; + import world.bentobox.bentobox.api.addons.Addon; import world.bentobox.bentobox.api.addons.Pladdon; +@Plugin(name="AcidIsland", version="1.0") +@ApiVersion(ApiVersion.Target.v1_16) +@Dependency(value = "BentoBox") public class AcidIslandPladdon extends Pladdon { @Override diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml deleted file mode 100644 index f3251ee..0000000 --- a/src/main/resources/plugin.yml +++ /dev/null @@ -1,6 +0,0 @@ -name: AcidIsland -main: world.bentobox.acidisland.AcidIslandPladdon -version: ${version} -api-version: 1.21 -description: AcidIsland -author: tastybento