Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.3.0 #331

Merged
merged 49 commits into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
1da6240
Init 1.2.0 version
BONNe Jan 5, 2023
8b81101
Fixes #311 localization errors in zn-CN.
BONNe Jan 19, 2023
e94d234
Init 1.2.0 version
BONNe Jan 5, 2023
0d69459
Merge remote-tracking branch 'origin/develop' into develop
BONNe Jan 19, 2023
1faf3b5
Edit some unfit translation (#312)
liaosunny123 Jan 20, 2023
468232c
Fixes a regex bug that replaced every [player] char instead of whole …
BONNe Jan 30, 2023
5ba7c68
Merge remote-tracking branch 'origin/develop' into develop
BONNe Jan 30, 2023
ee8eaf8
Fixes a crash that prevented STATISTICS entity and material/item chal…
BONNe Feb 2, 2023
431aaf4
Add requirement-not-met-material and requirement-not-met-entity to di…
BONNe Feb 2, 2023
9ed9273
Add locale of Chinese-Hong Kong (zh-HK) (#313)
JamesMCL44 Feb 5, 2023
1b585a2
Add ${argLine} to get jacoco coverage
tastybento Feb 9, 2023
84a38f4
Updated Jacoco POM section
tastybento Feb 10, 2023
09adbde
Update build.yml
tastybento Feb 10, 2023
e0377fd
Updated pladdon annotations
tastybento Mar 25, 2023
9953459
Add support for gamemode-specific translations.
BONNe Mar 31, 2023
de7172e
Update ChallengesManagerTest methods with world parameter.
BONNe Mar 31, 2023
5ab4237
Implement option that excludes undeployed challenges
BONNe Apr 2, 2023
a608c8b
Create plugin.yml (#316)
BONNe Apr 8, 2023
01bd7b8
Remove dependency to org.apache.commons
BONNe Apr 13, 2023
550e348
Fixes a crash with written/writable books.
BONNe Apr 24, 2023
53f0a0c
Fixed TryToComplete test class
tastybento Jun 4, 2023
82ba144
Fixed CompleteChallengeCommandTest
tastybento Jun 4, 2023
ddebdf0
Fixed ChallengesCommandTest
tastybento Jun 4, 2023
480ffd8
Fixed ChallengesManagerTest
tastybento Jun 4, 2023
9da197d
Update Github Action build script
tastybento Jun 24, 2023
125a324
Add required distribution
tastybento Jun 24, 2023
3b36f38
Fixes the admin GUI crash.
BONNe Jul 3, 2023
d74cfbf
Merge remote-tracking branch 'origin/develop' into develop
BONNe Jul 3, 2023
98052d1
Update Hungarian translation (#301)
gitlocalize-app[bot] Jul 8, 2023
ebd0b46
Update POM versions to use latest API
tastybento Jul 8, 2023
bba54aa
Remove duplicate plugin reference in POM
tastybento Jul 8, 2023
1759ef7
Try adding maven dependency to fix test issue
tastybento Jul 8, 2023
1fdcfdd
Remove offending test. Was not that useful anyway.
tastybento Jul 8, 2023
9e34910
Update Jacoco
tastybento Jul 11, 2023
34d280d
Update pom.xml
tastybento Jul 11, 2023
56d7eb4
Update to BentoBox 2.0.0
tastybento Nov 12, 2023
48f388c
Add Ukrainian locale (#326)
gitlocalize-app[bot] Nov 26, 2023
a6a3a3e
Translate uk.yml via GitLocalize (#325)
gitlocalize-app[bot] Nov 26, 2023
b82defe
Show money as formatted. Addresses #324
tastybento Nov 27, 2023
b6bd3d3
Update README.md
tastybento Nov 27, 2023
a90d17d
Update README.md
tastybento Nov 27, 2023
c351225
Fixes enchanted book meta not displayed (#328)
BONNe Dec 20, 2023
74cd97f
Upgrade PanelUtils to 1.2.0
BONNe Jan 3, 2024
8a8124f
Fixes crash when player in CREATIVE shift+clicks on INVENTORY challenge.
BONNe Jan 11, 2024
fe9e63f
Fix tests for creative user inventory challenge completion
tastybento Jan 13, 2024
005d49a
Update TIPPED_ARROW to latest API in panels
tastybento Jan 21, 2024
7483ff0
Update en-US.yml
BONNe Feb 11, 2024
d058830
Reference latest BentoBox release version
tastybento Mar 10, 2024
ec6b950
Fix tests.
tastybento Mar 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,22 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Cache SonarCloud packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand Down
44 changes: 20 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,42 @@
[![Discord](https://img.shields.io/discord/272499714048524288.svg?logo=discord)](https://discord.bentobox.world)
[![Build Status](https://ci.codemc.org/buildStatus/icon?job=BentoBoxWorld/Challenges)](https://ci.codemc.org/job/BentoBoxWorld/job/Challenges/)

Add-on for BentoBox to provide challenges for any BentoBox GameMode.
Add-on for BentoBox to provide challenges for any BentoBox GameMode. Challenges can be to collect items, to have items or blocks nearby, to amass an amount of money or island levels, or to have accomplished some player statistic. Each challenge can reward the player with money, experience points, blocks, items, or other things, like permissions, Pre-built challenges are available and there is also a Web Library of pre-built ones. Customize them to fit your needs!

## Where to find

Currently Challenges Addon is in **Beta stage**, so it may or may not contain bugs... a lot of bugs. Also it means, that some features are not working or implemented.
Latest official **Beta Release is 0.8.3**, and you can download it from [Release tab](https://github.com/BentoBoxWorld/Challenges/releases)
But it will work with BentoBox 1.14.

Latest development builds will be based on **Minecraft 1.16.1** and **BentoBox 1.14.0**.
**Nightly builds** are available in [Jenkins Server](https://ci.codemc.org/job/BentoBoxWorld/job/Challenges/lastStableBuild/).

If you like this addon but something is missing or is not working as you want, you can always submit an [Issue request](https://github.com/BentoBoxWorld/Challenges/issues) or get a support in Discord [BentoBox ![icon](https://avatars2.githubusercontent.com/u/41555324?s=15&v=4)](https://discord.bentobox.world)

## Translations

As most of BentoBox projects, Challenges Addon is translatable in any language. Everyone can contribute, and translate some parts of the addon in their language via [GitLocalize](https://gitlocalize.com/repo/2896).
If your language is not in the list, please contact to developers via Discord and it will be added there.
Unfortunately, default challenges come only in English translation. But with version 0.8.0 there will be access to different challenges libraries, where everyone could share their challenges with their translations. More information will come soon.
![Challenges](https://github.com/BentoBoxWorld/Challenges/assets/4407265/9b3c5278-3a9d-45f2-9ee1-2c1fc1199a8d)

## How to use

1. Place the addon jar in the addons folder of the BentoBox plugin
2. Restart the server
3. Edit the config.yml how you want.
4. Restart the server
5. Run the Admin challenges command to set up challenges for your game mode.

#### Challenges
#### Installation

By default, challenges addon comes without any challenge or level. On first runtime only Admin GUI will be accessible.
Admins can create their own challenges or import some default challenges, which importing also are available via Admin GUI. Default challenges contains 5 levels and 57 challenges.
There exist also Web Library, where users can download public challenges. It is accessible with Admin GUI by clicking on Web icon.
By default, challenges addon comes without any challenge or level. On first run time only Admin GUI will be accessible.
Admins can create their own challenges or import some default challenges. Default challenges contains 5 levels and 57 challenges.
There also exists a Web Library, where admins can download public challenges. It is accessible from the Admin GUI by clicking on the Web icon.

## Compatibility

- [x] BentoBox - 1.14 versions
- [x] BentoBok
- [x] BSkyBlock
- [x] AcidIsland
- [x] SkyGrid
- [x] CaveBlock

## Information
## Translations

As with most of BentoBox projects, Challenges Addon is translatable into any language. Everyone can contribute, and translate some parts of the addon in their language via [GitLocalize](https://gitlocalize.com/repo/2896).
If your language is not in the list, please contact the developers via Discord and it will be added there.
Unfortunately, default challenges come only be in English, but there are different challenges libraries where everyone can share their challenges with their translations.

## Documentation

More information can be found in the docs: https://docs.bentobox.world/en/latest/addons/Challenges/

## Bugs or feature requests
If you like this addon but something is missing or is not working as you want, you can always submit an [Issue request](https://github.com/BentoBoxWorld/Challenges/issues) or get a support in Discord [BentoBox ![icon](https://avatars2.githubusercontent.com/u/41555324?s=15&v=4)](https://discord.bentobox.world)

More information can be found in [Wiki Pages](https://docs.bentobox.world/en/latest/addons/Challenges/).
83 changes: 51 additions & 32 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
<java.version>17</java.version>
<powermock.version>2.0.9</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.17.1-R0.1-SNAPSHOT</spigot.version>
<spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version>
<spigot-annotations.version>1.2.3-SNAPSHOT</spigot-annotations.version>
<bentobox.version>1.21.0</bentobox.version>
<bentobox.version>2.1.0</bentobox.version>
<level.version>2.6.3</level.version>
<vault.version>1.7</vault.version>
<panelutils.version>1.1.0</panelutils.version>
<panelutils.version>1.2.0</panelutils.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- This allows to change between versions and snapshots. -->
<build.version>1.2.0</build.version>
<build.version>1.3.0</build.version>
<build.number>-LOCAL</build.number>
<!-- Sonar Cloud -->
<sonar.projectKey>BentoBoxWorld_Challenges</sonar.projectKey>
Expand Down Expand Up @@ -120,6 +120,12 @@
</repositories>

<dependencies>
<!-- This is required for PowerMockito to work and must be placed before it -->
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.30.2-GA</version>
</dependency>
<!-- Spigot API -->
<dependency>
<groupId>org.spigotmc</groupId>
Expand Down Expand Up @@ -187,6 +193,11 @@
<version>1.5.21</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.6.1</version>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -217,6 +228,38 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.1-SNAPSHOT</version>
<configuration>
<minimizeJar>true</minimizeJar>
<artifactSet>
<includes>
<include>lv.id.bonne:panelutils:*</include>
</includes>
</artifactSet>
<transformers>
<!-- Add a transformer to exclude any other manifest files (possibly from dependencies). -->
<transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
<resource>MANIFEST.MF</resource>
</transformer>
<!-- Add a transformer to include your custom manifest file. -->
<transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
<resource>META-INF/MANIFEST.MF</resource>
<file>src/main/resources/META-INF/MANIFEST.MF</file>
</transformer>
</transformers>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
Expand Down Expand Up @@ -325,40 +368,15 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.4</version>
<configuration>
<append>true</append>
<excludes>
<!-- This is required to prevent Jacoco from adding
synthetic fields to a JavaBean class (causes errors in testing) -->
<exclude>**/*Names*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>post-unit-test</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<version>0.8.10</version>
<configuration>
<append>true</append>
<excludes>
<!-- This is required to prevent Jacoco from adding
synthetic fields to a JavaBean class (causes errors in testing) -->
<exclude>**/*Names*</exclude>
<!-- Prevents the Material is too large to mock error -->
<exclude>org/bukkit/Material*</exclude>
</excludes>
</configuration>
<executions>
Expand All @@ -378,6 +396,7 @@
<format>XML</format>
</formats>
</configuration>

</execution>
</executions>
</plugin>
Expand Down
Loading
Loading