Switch to use annotations for plugin.yml

This commit is contained in:
tastybento 2023-03-25 09:45:06 -07:00
parent f79aeac4b8
commit 3276813674
3 changed files with 12 additions and 6 deletions

View File

@ -142,6 +142,11 @@
<version>${spigot.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>plugin-annotations</artifactId>
<version>1.2.3-SNAPSHOT</version>
</dependency>
<!-- Mockito (Unit testing) -->
<dependency>
<groupId>org.mockito</groupId>

View File

@ -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

View File

@ -1,6 +0,0 @@
name: AcidIsland
main: world.bentobox.acidisland.AcidIslandPladdon
version: ${version}
api-version: 1.21
description: AcidIsland
author: tastybento