Commit Graph

725 Commits

Author SHA1 Message Date
BONNe 129f692045 Comment out code that removes player from local cache on leaving server.
It is done due #246 reported that relog could be done faster than async saving.
2020-07-08 09:56:55 +03:00
BONNe ce14c20126 Update to BentoBox 1.14-SNAPSHOT API.
Implement new API features.
Replace deprecated methods.

Add compatibility layer with Minecraft 1.16 version.
2020-07-07 11:58:09 +03:00
BONNe e85b687e36 Fixes #244
Implement 2 new placeholders.
2020-06-19 11:36:26 +03:00
BONNe dd8834f1df Fixes #243
Challenges level status for unlocking should look on previous level waiver amount, not on its value.
Also, if second level is marked as locked, then all next levels should also be marked as locked.
2020-06-17 08:32:15 +03:00
BONNe 679fe48871 Fix issue when challenges are not saved in database after importing from web or default file set. 2020-05-26 10:19:32 +03:00
tastybento 6203b92f2e Fixed tests. 2020-05-09 12:51:13 -07:00
BONNe da5fab8558 Remove settings saving on addon disabling.
Settings are saved on each Settings GUI building.
2020-05-08 10:20:44 +03:00
BONNe ffac90f84c Add NULL protection in challenge and level loading.
Remove Challenge and Level saving on server stop, as it is done in GUI after editing. Reduce load on database.
Use saveAsync, as saveObject is deprecated.
2020-05-08 10:20:01 +03:00
BONNe fdafce0b86 Add bee head in HeadLib 2020-05-08 09:48:07 +03:00
BONNe e32799a1fb Fix config issues.
Populate challenge lore and level lore with all enum values on initialization, instead of leaving them empty.

Fix wrong message about reset for some config options.
2020-05-08 09:40:13 +03:00
BONNe 1c9aa664c8 Update to BentoBox 1.13.1.
Update to Spigot 1.15.2.
2020-05-08 09:38:50 +03:00
BONNe ce6aa4ef55 Fixes #231
It should return previous level instead of current one.
2020-05-07 19:27:59 +03:00
BONNe 67971e44e8 Fix placeholder names.
Used naming scheme: [gamemode]_[addon]_[placeholder].
2020-05-07 00:26:12 +03:00
BONNe d11226d504 Fixes #231
Logic issue.
2020-05-07 00:19:21 +03:00
BONNe 4caeee6d64 Fast bug fix when users could not write a valid input via chat message. 2020-05-02 00:17:26 +03:00
BONNe 8d5514325c Fix issue when AbandonedListener targeted correct input values.
I did not understand correctly how that listener worked.
2020-04-29 23:15:24 +03:00
BONNe 4ab706b207 Move back to 9.0.0 version 2020-04-22 01:42:38 +03:00
BONNe 8383c93cf9
Bug fix release (#228)
* Fix issue when users could not select non-block items as icons for challenges and levels. (#190)

* English update (#193)

* Organized imports

* Minor code cleanup

* Updated English locale file.

* Translate zh-CN.yml via GitLocalize (#188)

* Make default translation looking a bit nicer (#192)

* Make default translation looking a bit nicer
* Updating a few friendly names and rewording some phrases
* Add generic .gitignore

* Fix novice level

Update `chiseledmaker` name in `novice` level.

* Adapt literal style (#197)

Improve translations and process as a YAML string.

* Test coverage (#199)

* 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

* Fix a bug with challenge deletion.

If challenge has been left in a level, then system did not remove challenge from it and was kept as ghost challenge, preventing from completing level.

* Fixes tests

* Updated travis.yml

* All strings to spanish (#200)

* Translate es.yml via GitLocalize

* Translate es.yml via GitLocalize

* Translate es.yml via GitLocalize

* Fix LevelListRequestHandler.
This handler did not return list of strings but list of challenge levels, that is incorrect.
Not it should work correctly.

* Create ro.yml

* Create id.yml

* Remove blanks files now that GitLocalize is fixed.

* Initial Russian translation (#207)

* Translate ru.yml via GitLocalize

Co-authored-by: @mt-gitlocalize @IPeredero @LoveBiscuit

* Changed build character from # to b

* Add German translation (#210)

* Translate de.yml via GitLocalize

* Translate de.yml via GitLocalize

* Translate de.yml via GitLocalize

Co-authored-by: xXjojojXx <36734820+xXjojojXx@users.noreply.github.com>
Co-authored-by: FunnysBanana <51290016+FunnysBanana@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>

* Czech translation. Credit @Polda18

* Added a uniqueId sanitization when creating challenges/levels
This will help fixing issues with spaces, hyphens and accents in non-English languages.

* Fixes bug with checking entities in nether and end (#219)

https://github.com/BentoBoxWorld/Challenges/issues/218

Adds test case to check for compliance.

* Add 7 new placeholders for Challenges Addon.

- `[gamemode]_challenge_total_completion_count` returns number of sum of challenge completions for user.
- `[gamemode]_challenge_completed_count` returns number of completed challenges (at least once) for user.
- `[gamemode]_challenge_uncompleted_count` returns number of uncompleted challenges for user.
- `[gamemode]_challenge_completed_level_count` returns number of completed levels for user.
- `[gamemode]_challenge_uncompleted_level_count` returns number of uncompleted levels for user.
- `[gamemode]_challenge_unlocked_level_count` returns number of unlocked levels for user.
- `[gamemode]_challenge_locked_level_count` returns number of locked levels for user.

Fixes #224

* Add 2 new placeholders:

- `[gamemode]_challenge_latest_level_name` returns latest unlocked challenge level name
- `[gamemode]_challenge_latest_level_id` returns latest unlocked challenge level id

Fixes #226

* Fix broken tests due to placeholder additions.

b5ecffb725
2958ca8b6c

* Added default perms for aoneblock

* Downgrade to 0.8.1 version

* Add option to quit from conversation by writing "cancel" in chat.
Move sanitizeInput to a GuiUtil class.

* Change latest version to 0.8.1
2020-04-22 01:19:46 +03:00
BONNe 2c9f1a6057 Change latest version to 0.8.1 2020-04-22 01:16:22 +03:00
BONNe 5a0d63a272 Add option to quit from conversation by writing "cancel" in chat.
Move sanitizeInput to a GuiUtil class.
2020-04-22 01:12:46 +03:00
BONNe 3fd0aa7219 Downgrade to 0.8.1 version 2020-04-22 01:10:31 +03:00
tastybento a52cabf5b9 Added default perms for aoneblock 2020-04-19 08:38:47 -07:00
tastybento 30783112b1 Merge branch 'develop' of https://github.com/BentoBoxWorld/Challenges.git into develop 2020-04-06 17:21:02 -07:00
tastybento bda02fe55b Fix broken tests due to placeholder additions.
b5ecffb725
2958ca8b6c
2020-04-06 17:20:53 -07:00
BONNe b5ecffb725 Add 2 new placeholders:
- `[gamemode]_challenge_latest_level_name` returns latest unlocked challenge level name
- `[gamemode]_challenge_latest_level_id` returns latest unlocked challenge level id

Fixes #226
2020-04-06 20:14:34 +03:00
BONNe 2958ca8b6c Add 7 new placeholders for Challenges Addon.
- `[gamemode]_challenge_total_completion_count` returns number of sum of challenge completions for user.
- `[gamemode]_challenge_completed_count` returns number of completed challenges (at least once) for user.
- `[gamemode]_challenge_uncompleted_count` returns number of uncompleted challenges for user.
- `[gamemode]_challenge_completed_level_count` returns number of completed levels for user.
- `[gamemode]_challenge_uncompleted_level_count` returns number of uncompleted levels for user.
- `[gamemode]_challenge_unlocked_level_count` returns number of unlocked levels for user.
- `[gamemode]_challenge_locked_level_count` returns number of locked levels for user.

Fixes #224
2020-04-05 21:27:09 +03:00
tastybento 6368585a57
Fixes bug with checking entities in nether and end (#219)
https://github.com/BentoBoxWorld/Challenges/issues/218

Adds test case to check for compliance.
2020-03-09 11:39:59 +02:00
Florian CUNY db971d81ab Added a uniqueId sanitization when creating challenges/levels
This will help fixing issues with spaces, hyphens and accents in non-English languages.
2020-02-08 22:28:57 +01:00
tastybento 0ae84ec850
Czech translation. Credit @Polda18 2020-01-30 10:28:36 -08:00
gitlocalize-app[bot] fca00108bb Add German translation (#210)
* Translate de.yml via GitLocalize

* Translate de.yml via GitLocalize

* Translate de.yml via GitLocalize

Co-authored-by: xXjojojXx <36734820+xXjojojXx@users.noreply.github.com>
Co-authored-by: FunnysBanana <51290016+FunnysBanana@users.noreply.github.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
2020-01-13 08:04:11 +02:00
Florian CUNY ef452fa030
Changed build character from # to b 2020-01-02 11:00:50 +01:00
gitlocalize-app[bot] 7b8cc8e985 Initial Russian translation (#207)
* Translate ru.yml via GitLocalize

Co-authored-by: @mt-gitlocalize @IPeredero @LoveBiscuit
2019-12-23 08:58:52 +02:00
tastybento 352e67344c Remove blanks files now that GitLocalize is fixed. 2019-11-30 09:39:48 -08:00
tastybento 8c4cadafdc
Create id.yml 2019-11-16 18:30:31 -08:00
tastybento 3a1acaf6a5
Create ro.yml 2019-11-16 18:30:21 -08:00
BONNe 4cae1ed267 Fix LevelListRequestHandler.
This handler did not return list of strings but list of challenge levels, that is incorrect.
Not it should work correctly.
2019-11-13 16:16:59 +02:00
gitlocalize-app[bot] e75d13666e All strings to spanish (#200)
* Translate es.yml via GitLocalize

* Translate es.yml via GitLocalize

* Translate es.yml via GitLocalize
2019-11-12 12:14:00 +02:00
tastybento 32c44f2898 Updated travis.yml 2019-11-07 17:09:07 -08:00
tastybento 4cb4c7e3fb Fixes tests 2019-11-03 14:12:09 -08:00
BONNe e3e3191e6c Fix a bug with challenge deletion.
If challenge has been left in a level, then system did not remove challenge from it and was kept as ghost challenge, preventing from completing level.
2019-11-03 22:45:24 +02:00
tastybento 9d45f08fb1 Test coverage (#199)
* 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
2019-10-30 08:44:26 +02:00
NotMyFault d1c9e8fd44 Adapt literal style (#197)
Improve translations and process as a YAML string.
2019-10-25 09:36:36 +03:00
BONNe 250d8cf639
Fix novice level
Update `chiseledmaker` name in `novice` level.
2019-10-14 14:28:19 +03:00
NotMyFault 3f9e709cdd Make default translation looking a bit nicer (#192)
* Make default translation looking a bit nicer
* Updating a few friendly names and rewording some phrases
* Add generic .gitignore
2019-10-14 14:12:18 +03:00
DuckSoft 967e6e05a2 Translate zh-CN.yml via GitLocalize (#188) 2019-10-10 18:59:02 +03:00
tastybento 2aa437f071 English update (#193)
* Organized imports

* Minor code cleanup

* Updated English locale file.
2019-10-10 08:35:25 +03:00
BONNe 0c47f811dc Fix issue when users could not select non-block items as icons for challenges and levels. (#190) 2019-09-28 20:09:21 +03:00
BONNe 29a5057535
Update README.md 2019-09-09 19:22:02 +03:00
BONNe 7f999edd18
Update README.md 2019-09-09 19:21:30 +03:00
BONNe 0ed4eaa18a Update ReadMe file. 2019-09-09 19:18:31 +03:00