Switch to use annotations for plugin.yml

This commit is contained in:
tastybento 2023-03-25 09:46:28 -07:00
parent 7e7512549c
commit 9d4d671168
3 changed files with 12 additions and 7 deletions

View File

@ -137,6 +137,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.bskyblock;
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="BSkyBlock", version="1.0")
@ApiVersion(ApiVersion.Target.v1_17)
@Dependency(value = "BentoBox")
public class BSkyBlockPladdon extends Pladdon {
@Override

View File

@ -1,7 +0,0 @@
name: BSkyBlock
main: world.bentobox.bskyblock.BSkyBlockPladdon
version: ${version}
api-version: 1.19
description: A SkyBlock Plugin
author: tastybento