Skip to content

Commit

Permalink
Upgrade to BentoBox 1.17 API changes.
Browse files Browse the repository at this point in the history
Implement Pladdon functionality.
Compile against java 16 and Spigot 1.17
  • Loading branch information
BONNe committed Jun 23, 2021
1 parent 93c98e0 commit 9ca674d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
23 changes: 23 additions & 0 deletions src/main/java/world/bentobox/challenges/ChallengesPladdon.java
Original file line number Diff line number Diff line change
@@ -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();
}
}
10 changes: 10 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9ca674d

Please sign in to comment.