Commit Graph

535 Commits

Author SHA1 Message Date
BONNe
550e348428 Fixes a crash with written/writable books.
The issue was with generating description message for written books without title or author.

Fixes #318
2023-04-24 15:01:56 +03:00
BONNe
01bd7b82bb
Remove dependency to org.apache.commons
Replace org.apache.commons.lang.ArrayUtils to a default Java implementation.
2023-04-13 18:56:17 +03:00
BONNe
a608c8b765
Create plugin.yml (#316)
* Create plugin.yml

* Update pom.xml

* Update ChallengesPladdon.java
2023-04-08 18:30:40 +03:00
BONNe
5ab4237df4 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
2023-04-02 14:47:10 +03:00
BONNe
9953459e50 Add support for gamemode-specific translations.
This was a request from Floris
2023-03-31 11:12:08 +03:00
tastybento
e0377fd352 Updated pladdon annotations 2023-03-25 10:05:36 -07:00
JamesMCL44
9ed92733c7
Add locale of Chinese-Hong Kong (zh-HK) (#313)
Addition of locale updated to latest version
2023-02-05 18:36:33 +02:00
BONNe
431aaf46fc Add requirement-not-met-material and requirement-not-met-entity to display statistic required item on error. 2023-02-02 23:29:06 +02:00
BONNe
ee8eaf8e84 Fixes a crash that prevented STATISTICS entity and material/item challenges to be completed. 2023-02-02 23:24:22 +02:00
BONNe
5ba7c681de Merge remote-tracking branch 'origin/develop' into develop 2023-01-30 23:54:36 +02:00
BONNe
468232cabc Fixes a regex bug that replaced every [player] char instead of whole word. 2023-01-30 23:54:29 +02:00
EpicMo
1faf3b55be
Edit some unfit translation (#312)
Edit some unfit translation
2023-01-20 04:44:29 +02:00
BONNe
8b81101ef0 Fixes #311 localization errors in zn-CN.
Original translation author translated `[]` placeholders which broke locale
2023-01-19 12:47:20 +02:00
BONNe
c8edfe3b51 Adds potion names to the default locale.
The potion names will not be displayed, but it will add all of them in the locale.
2023-01-05 21:32:03 +02:00
BONNe
e55503a9cf Add extra parameters for completion commands.
The 2 new parameters are:
   - [owner] - the owner of island.
   - [name] - the name of the island.

Fixes #304
2022-11-21 08:15:38 +02:00
BONNe
57a4c08c0c
Rewrite action display logic. (#308)
There were no filters for action displaying. All actions were active from the start, even if they are not possible.
I added action filter that will remove impossible actions:
    - COMPLETE_MAX and MULTIPLE_PANEL for non-repeatable challenge,
    - already completely finished challenge.
Fixes #307
2022-11-21 08:01:13 +02:00
BONNe
31bd9238d4 Merge remote-tracking branch 'origin/develop' into develop 2022-11-05 04:09:56 +02:00
BONNe
0475c798e1 Fixes missing error translation for not meeting statistics challenge value. 2022-11-05 04:09:43 +02:00
gitlocalize-app[bot]
9b83b5cd06
Update PT (#306)
* Translate pt.yml via GitLocalize

* Translate pt.yml via GitLocalize

Co-authored-by: Mario-Leal <henriquedosgrilo@gmail.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
2022-10-31 08:24:18 +02:00
gitlocalize-app[bot]
e6fdc81937
Translate pl.yml via GitLocalize (#302)
Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
2022-08-27 15:14:59 +03:00
gitlocalize-app[bot]
57d1f9f4cc
Update zh-CN (#300)
* Translate zh-CN.yml via GitLocalize

* Translate zh-CN.yml via GitLocalize

* Translate zh-CN.yml via GitLocalize

Co-authored-by: DuckSoft <realducksoft@gmail.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
Co-authored-by: Yanhanr <me.yanhan@outlook.com>
2022-08-23 10:54:44 +03:00
gitlocalize-app[bot]
3ca2fbe7eb
Update PL translation (#299)
* Translate pl.yml via GitLocalize

* Translate pl.yml via GitLocalize

* Translate pl.yml via GitLocalize

Co-authored-by: wiktorm12 <wiktorm12@gmail.com>
Co-authored-by: LISU <lisudef@gmail.com>
Co-authored-by: mt-gitlocalize <mt@gitlocalize.com>
2022-08-23 10:54:28 +03:00
BONNe
c933caebe0 Fixes an issue when error message about file loading was not logged. 2022-07-26 01:02:09 +03:00
BONNe
d59b047555 Fixes missing "required level" string.
I forgot to add correct reference text to the level.

Fixes #298
2022-07-25 11:00:05 +03:00
BONNe
26fb55748f Solves "Comparison method violates its general contract!" crash.
I reworked a comparator for challenges a bit. I did not find the reason why previous was wrong, as it should return the same result as the new one, but for some reason this works, and previous do not.

Fixes #296
2022-07-07 11:27:11 +03:00
BONNe
218e5fc6c4 Fixes an incorrect permission assignment for global admin and global player command.
Reported via discord.
2022-05-13 18:02:42 +03:00
tastybento
9cccfa02ba Remove various code smells. 2022-04-16 15:54:49 -07:00
tastybento
6c0915544e Require non-nulls.
getInventory never returns null.
2022-04-16 15:27:35 -07:00
tastybento
37d2039a67 Added null check 2022-04-16 15:21:29 -07:00
tastybento
44ad32df50 Null check 2022-04-16 15:15:26 -07:00
tastybento
e8b4129c3a Check for null world 2022-04-16 15:13:55 -07:00
tastybento
5c2f2ecfc7 Avoid potential call with a null parameter to User.getInstance 2022-04-16 15:12:19 -07:00
tastybento
10d8352f1c Fixed test failures. 2022-04-16 15:03:11 -07:00
tastybento
aff6fcec22 Fix failing test. Make player default to being on island. 2022-04-16 14:49:17 -07:00
gitlocalize-app[bot]
f851a96c9b
Update German translation (#295)
* Translate de.yml via GitLocalize

* Translate de.yml via GitLocalize

* Translate de.yml via GitLocalize

Co-authored-by: Patrick <patrick.wassmuth@gmx.de>
Co-authored-by: Michael F <unhappyangel83@googlemail.com>
Co-authored-by: DAge030 <dage030@web.de>
2022-04-16 18:34:54 +03:00
BONNe
36ad61b4b9
Improve equal item listing.
Change when items should be grouped.
Instead of relaying strictly from ignoreMetaData set, now try to group equal elements without durability check, and use set only if that fails.
2022-03-22 12:49:57 +02:00
BONNe
e96e2c7e72
Fixes a bug with -1 repeat-times
There was a bug that prevented the challenge to be completed if negative numbers were set in the "max-repeats" value.
2022-03-22 12:41:27 +02:00
BONNe
6bffb2088b
Fix a bug with completion broadcasting
Reported via Discord.
2022-02-20 12:08:58 +02:00
BONNe
b9e57fdebb Fixes some small bugs with translation potion base effect.
There was an issue that it tried to translate extra effects and ignored main one.

Relates to #290
2022-01-08 13:23:48 +02:00
BONNe
fc1d4fcf06 Update lv translation. 2022-01-04 21:48:36 +02:00
BONNe
23778ffca2 Fix an issue when edit menu did not display item amount. 2022-01-04 21:47:20 +02:00
BONNe
88215b6f0c Implement MetaData ignoring for rewards.
While required items had a metadata grouping, reward items did not have it. This will fix that.

Fixes #289
2022-01-04 21:45:34 +02:00
BONNe
71e0029d46 Fixes incorrect NEXT and PREVIOUS button descriptions.
Fixes #289
2022-01-04 21:38:52 +02:00
BONNe
7fbffbb6d2 Address some code quality reports from SonarCloud.
Most of the errors are just sanity checks, as the most of null-pointers were already checked in other ways.
2021-12-01 11:30:02 +02:00
BONNe
8f6abf2434 Link templates to the docs. 2021-11-22 13:55:51 +02:00
BONNe
e9f37e8dee Replace GuiUtils and HeadLib to the PanelUtils library. 2021-10-02 14:04:30 +03:00
BONNe
08d1561138 Implement an option to set which item type will ignore metadata per challenge.
Fixes #261
Fixes #252
2021-09-24 17:16:33 +03:00
BONNe
99a3e3f165 Implement changing Timeout in the Challenge Edit GUI.
Relates #71
2021-09-24 16:16:48 +03:00
BONNe
bb5e861b30 Implement timeout respecting in challenges completion.
Implement timeout in GUI's.

Relates #71
2021-09-24 16:03:02 +03:00
BONNe
1b01995546 Add timeout for repeatable challenges.
Relates #71
2021-09-24 13:08:33 +03:00