* Init 1.2.0 version
* Fixes#311 localization errors in zn-CN.
Original translation author translated `[]` placeholders which broke locale
* Init 1.2.0 version
* Edit some unfit translation (#312)
Edit some unfit translation
* Fixes a regex bug that replaced every [player] char instead of whole word.
* Fixes a crash that prevented STATISTICS entity and material/item challenges to be completed.
* Add requirement-not-met-material and requirement-not-met-entity to display statistic required item on error.
* Add locale of Chinese-Hong Kong (zh-HK) (#313)
Addition of locale updated to latest version
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM section
* Update build.yml
Java 17 for Surefire
* Updated pladdon annotations
* Add support for gamemode-specific translations.
This was a request from Floris
* Update ChallengesManagerTest methods with world parameter.
* Implement option that excludes undeployed challenges
The new option allows to toggle if undeployed challenges should be included in level completion count. Disabling option will not include these challenges for level completion.
Fixes#315
* Create plugin.yml (#316)
* Create plugin.yml
* Update pom.xml
* Update ChallengesPladdon.java
* Remove dependency to org.apache.commons
Replace org.apache.commons.lang.ArrayUtils to a default Java implementation.
* Fixes a crash with written/writable books.
The issue was with generating description message for written books without title or author.
Fixes#318
* Fixed TryToComplete test class
* Fixed CompleteChallengeCommandTest
* Fixed ChallengesCommandTest
* Fixed ChallengesManagerTest
* Update Github Action build script
* Add required distribution
* Fixes the admin GUI crash.
Add shade plugin that was missing for dependencies.
* Update Hungarian translation (#301)
* Translate hu.yml via GitLocalize
* Translate hu.yml via GitLocalize
* Translate hu.yml via GitLocalize
* Translate hu.yml via GitLocalize
* Update hu.yml
Fix color codes and placeholders
---------
Co-authored-by: driverdakid <tamascsiszar99@icloud.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: slimcraft <davidelek12@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Update POM versions to use latest API
* Remove duplicate plugin reference in POM
* Try adding maven dependency to fix test issue
* Remove offending test. Was not that useful anyway.
* Update Jacoco
* Update pom.xml
* Update to BentoBox 2.0.0
Had to ignore some tests because PowerMockito can't mock them for some
reason.
* Add Ukrainian locale (#326)
* Translate uk.yml via GitLocalize
* Translate uk.yml via GitLocalize
---------
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Translate uk.yml via GitLocalize (#325)
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
* Show money as formatted. Addresses #324
* Update README.md
* Update README.md
* Fixes enchanted book meta not displayed (#328)
Apparently in Spigot EnchantmentStorage has a map that is not used for enchantment storing. Nice.
Fixes#327
* Upgrade PanelUtils to 1.2.0
* Fixes crash when player in CREATIVE shift+clicks on INVENTORY challenge.
Limit completion time to 2, if player is in creative instead of Integer.MAX_VALUE
Fixes#330
* Fix tests for creative user inventory challenge completion
* Update TIPPED_ARROW to latest API in panels
* Update en-US.yml
* Reference latest BentoBox release version
---------
Co-authored-by: BONNe <bonne@bonne.id.lv>
Co-authored-by: EpicMo <1982742309@qq.com>
Co-authored-by: JamesMCL44 <epicquarters@gmail.com>
Co-authored-by: gitlocalize-app[bot] <55277160+gitlocalize-app[bot]@users.noreply.github.com>
Co-authored-by: driverdakid <tamascsiszar99@icloud.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: slimcraft <davidelek12@gmail.com>
Co-authored-by: GIGABAIT <freebitcoin93@gmail.com>
* Init 1.2.0 version
* Fixes#311 localization errors in zn-CN.
Original translation author translated `[]` placeholders which broke locale
* Init 1.2.0 version
* Edit some unfit translation (#312)
Edit some unfit translation
* Fixes a regex bug that replaced every [player] char instead of whole word.
* Fixes a crash that prevented STATISTICS entity and material/item challenges to be completed.
* Add requirement-not-met-material and requirement-not-met-entity to display statistic required item on error.
* Add locale of Chinese-Hong Kong (zh-HK) (#313)
Addition of locale updated to latest version
* Add ${argLine} to get jacoco coverage
* Updated Jacoco POM section
* Update build.yml
Java 17 for Surefire
* Updated pladdon annotations
* Add support for gamemode-specific translations.
This was a request from Floris
* Update ChallengesManagerTest methods with world parameter.
* Implement option that excludes undeployed challenges
The new option allows to toggle if undeployed challenges should be included in level completion count. Disabling option will not include these challenges for level completion.
Fixes#315
* Create plugin.yml (#316)
* Create plugin.yml
* Update pom.xml
* Update ChallengesPladdon.java
* Remove dependency to org.apache.commons
Replace org.apache.commons.lang.ArrayUtils to a default Java implementation.
---------
Co-authored-by: EpicMo <1982742309@qq.com>
Co-authored-by: JamesMCL44 <epicquarters@gmail.com>
Co-authored-by: tastybento <tastybento@users.noreply.github.com>
Co-authored-by: tastybento <tastybento@wasteofplastic.com>
* Test coverage for Challenges Command
* Added CompleteChallengeCommand test class
* Added Utils test class
* Added ChallengesGUI test class
* Fix code smells from sonarcloud analysis
* Added .gitignore
* Added Travis CI config file
* WIP ChallengesManager Test class
* Added ChallengesManager test class
* Removed debug
* Removed code smells.
* Added ChallengesAddon test class.
* Added onDisbale test
* Added new TryToComplete test class - WIP
Covers inventory challenges.
* Added Island Challenge entity tests to TryToComplete test class
The issue was that I used wrong command to check island owner. It is fixed.
Also added 2 protective code, that prevents from trying to select large areas for block searching.
This is old change that was declined (#105), but unfortunately it is necessary.
If every ID is based on world names, than addon cannot process "/" in it. It mean that worlds cannot be put into different folders.
This change will fix it, but it is not completed.
In progress.
There does not exist converter, so old data is not usable with this version.
It looks like, exist plugins that keep capital letters in world names. That mean, it is not correct to lowercasing any id's.
To fix it, now, instead of lowercasing, challenges should be case insensitive.
Add code that removes challenges level from all its challenges, if level is deleted.
Add protection code that shows admins that something is not correct if challenge level is not in database.
* Rework TryToComplete.
Implement ability to complete challenge multiple times at once.
To do it, I split everything in checking/removing/rewarding steps.
In checking step, it calculates if it is possible to complete with minimal requirements and then calculates maximal repeating factor.
In removing step, it removes everything that is necessary.
In rewarding step, it give rewards by necessary factor (multilayer).
I rework item/block/entity removing as factors may be influenced at the last element, so I improve everything by memory usage. Create necessary sets/lists/queues for faster access to already collected items.
* Add method that returns removed items, if somehow algorithm did not manage to remove all items.
Fix issue when removeItems method did not merge ItemStacks as they had different item amount.
Return and fix TryToCompleteTest.
* Implement Multiple Challenge Completion command and GUI. (#73)
/[gamemode] challenges complete [number] allows to complete challenges [number] amount (or less if not enough items)
Via GUI users can right click on challenge and if it is repeatable, then it will open AnvilGUI that accepts only numbers as input.
Add settings option that can enable/disable title message and its length.
Add ability to edit these settings via admin GUI.
Add ability to use some variables in title and subtitle in translation files.
This issue happens because there were an issue with detecting if enough items are in player inventory. Each new required item stack forgets abouts previous founding.
Also it marked challenge as completed after items were failed to remove.