Upgrade to BentoBox 1.17 API changes.

Implement Pladdon functionality.
Compile against java 16 and Spigot 1.17
This commit is contained in:
BONNe 2021-06-23 19:50:58 +03:00
parent 93c98e0c35
commit 9ca674d2b9
3 changed files with 39 additions and 6 deletions

12
pom.xml
View File

@ -32,17 +32,17 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<java.version>16</java.version>
<powermock.version>2.0.4</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.15.2-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.15.4</bentobox.version>
<spigot.version>1.17-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.17.0-SNAPSHOT</bentobox.version>
<level.version>2.5.0</level.version>
<vault.version>1.7</vault.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- This allows to change between versions and snapshots. -->
<build.version>0.8.5</build.version>
<build.version>0.9.0</build.version>
<build.number>-LOCAL</build.number>
<!-- Sonar Cloud -->
<sonar.projectKey>BentoBoxWorld_Challenges</sonar.projectKey>
@ -215,8 +215,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<source>16</source>
<target>16</target>
</configuration>
</plugin>
<plugin>

View File

@ -0,0 +1,23 @@
//
// Created by BONNe
// Copyright - 2021
//
package world.bentobox.challenges;
import world.bentobox.bentobox.api.addons.Addon;
import world.bentobox.bentobox.api.addons.Pladdon;
/**
* @author tastybento
*/
public class ChallengesPladdon extends Pladdon
{
@Override
public Addon getAddon()
{
return new ChallengesAddon();
}
}

View File

@ -0,0 +1,10 @@
name: Challenges
main: world.bentobox.challenges.ChallengesPladdon
version: ${version}
api-version: 1.17
description: Challenges Addon
authors:
- tastybento
- BONNe
depend:
- BentoBox