Create plugin.yml (#282)

* Create plugin.yml

The annotations do not provide the option to define the version dynamically from maven. This should fix that.

* Remove Spigot Plugin Annotations

* Remove plugin-annotation repo
This commit is contained in:
BONNe 2023-04-08 18:22:41 +03:00 committed by GitHub
parent 9c42a8d007
commit 78c67b6d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 10 deletions

View File

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

View File

@ -1,8 +1,5 @@
package world.bentobox.level; package world.bentobox.level;
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.Addon;
import world.bentobox.bentobox.api.addons.Pladdon; import world.bentobox.bentobox.api.addons.Pladdon;
@ -11,8 +8,6 @@ import world.bentobox.bentobox.api.addons.Pladdon;
* @author tastybento * @author tastybento
* *
*/ */
@Plugin(name="Level", version="1.0")
@ApiVersion(ApiVersion.Target.v1_16)
public class LevelPladdon extends Pladdon { public class LevelPladdon extends Pladdon {
@Override @Override
public Addon getAddon() { public Addon getAddon() {

View File

@ -0,0 +1,9 @@
name: BentoBox-Level
main: world.bentobox.level.LevelPladdon
version: ${project.version}${build.number}
api-version: "1.19"
authors: [tastybento]
contributors: ["The BentoBoxWorld Community"]
website: https://bentobox.world
description: ${project.description}