* 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>
* Ignore failing test because method now doesn't do anything.
* Add spaces after color codes to make gitLocalize more accurate.
* Added a rewards title and made the lore prettier.
Added new config option "gui-settings.undeployed-view-mode" with 3 values
- 'VISIBLE' - all challenges are visible
- 'HIDDEN' - only deployed challenges are visible
- 'TOGGLEABLE' - users will be able to choose option for themself (not implemented)
Implement functionality in ChallengesGUI, where if option hidden is set, then all undeployed challenges are removed.
Implement ability to edit this option via admin Settings panel.
Add 2 new buttons:
- User wipe - deletes all challenges addon player data.
- challenges wipe - deletes only challenges and levels.
By clicking on challenges wipe with right click, it will switch to compelte wipe, and via versa.
Add [gamemode].complete.multiple permission that will allow/prevent to complete challenge multiple times at once.
Introduce new MultipleGUI that opens GUI with 5 buttons that allows to choose how many times challenge should be completed.
Remove AnvilGUI, as it is broken. Replaced with Spigot Conversation API.
Remove lore-config from GUI (broken).
Remove RIGHT_CLICK to complete multiple times (broken).
This request comes from Discord.
It also mention to format DiskDrive to avoid ability to restore database, but it is not implemented yet. Will be implemented in future releases.
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.
* Update ReadMe.
* Remove # symbol from development build name
* Color extends on further locale text
If a Friendly Name of a challenge is colored, it's color will pass on to all words after it.
Resetting it's color and setting it back after [level] will fix this.
Not really a relevant PR, but I've asked @BONNe on Discord if it's okay with him if I change this and he confirmed.