Commit Graph

58 Commits

Author SHA1 Message Date
akastijn db8c35150e Update Cosmos API to 1.21.8, configure Altitude Nexus repository, and adjust ProgressBookOpener for incomplete quests 2025-11-18 00:19:41 +01:00
akastijn 3bce3f9ab3 Update Gradle to 8.6, set api-version to 1.21, and add .gitignore 2025-06-28 03:42:52 +02:00
akastijn ff4fb6c1ae Update to java 21, 1.21 with cosmso 2025-06-28 03:33:39 +02:00
Teriuihi ffd67eada8 Update file paths in quest configurations
The file paths previously pointed to the user home directory. This commit adjusts the paths to consistently use a mount point directory instead. The change affects the 'QuestsConfig', 'Config', 'MessagesConfig', and 'DatabaseConfig' classes.
2024-07-20 01:46:33 +02:00
Teriuihi 81ed73fbd1 Add new responses to handle quest reroll situations
This commit fixes a bug where the quest reroll feature could be used repeatedly without restrictions. Now, appropriate responses will be given in cases where the quest is still loading or if the daily quest has already been completed. This ensures that the player cannot misuse the reroll functionality.
2024-04-18 20:49:05 +02:00
Teriuihi 34c5252db4 Refactor quest saving, update Galaxy-API version
Quest saving logic was abstracted into a saveQuest method in the Quest class to avoid redundancy. This change was reflected in OtherQuest, MineQuest, BreedMobsQuest, KillMobsQuest and CollectDropsQuest classes. Additionally, the Galaxy-API version was updated in the build.gradle.kts file.
2024-04-13 20:50:56 +02:00
Teriuihi 3bb822b41c Optimize and cleanup various classes
Reformatted several classes for optimization purposes. This includes removing unnecessary try-catch blocks, redundant initializers and imports, and condensing confirmation checks. Additionally, updated the `Database` class's `createUserPointsTable` and `createQuestLogTable` methods to use try-with-resources to ensure proper resource management.
2024-04-13 20:43:37 +02:00
Teriuihi c6b186e2c6 Remove commented code and ensure async execution in specific methods
All code sections that were commented out are now completely removed, resulting in a cleaner and more efficient codebase. In addition, the method 'unloadUser' in the Quest class, which previously only included a comment suggesting it should be run as an async operation, is now forced to run in an asynchronous manner, potentially improving performance.
2024-04-13 20:32:56 +02:00
Teriuihi 46bfb4fd65 Replace printStackTrace with Logger.throwing in various classes
The changes made in these classes are intended to improve error handling and visibility. Instead of simply printing the StackTrace, the Logger.throwing method is now used to send error messages to the logger in a more controlled manner. This should facilitate better error tracking and resolution. The affected classes include database, configuration, and quest implementation classes.
2024-04-13 20:27:33 +02:00
Teriuihi 8a22f5188e Add reroll command and associated help messages
A new 'reroll' command has been added for players to get a new quest. This feature is now reflected in the help messages. Furthermore, messages have been introduced to inform the player about successful reroll, or if the rerolling option is on cooldown.
2024-04-13 20:16:21 +02:00
once_a_fairy 410a825681 Fixed upper case quest names breaking bossbars. 2023-09-20 09:22:14 +02:00
once_a_fairy 2409103b3e Minor changes for OtherQuests and a progress bar was added. 2023-09-19 19:32:56 +02:00
Teriuihi e93a922cc8 Attempting to fix thread issues, temporarily disabled them 2023-08-06 20:57:59 +02:00
Teriuihi b8114ba0d3 Added auto hiding bossbar 2023-08-06 20:07:12 +02:00
once_a_fairy 2b9d6c0160 Minor changes. 2023-08-06 14:53:36 +02:00
once_a_fairy e258644a20 Fixed some dumb mistakes for the progress book. 2023-08-05 17:35:19 +02:00
once_a_fairy 0a0c4ffb98 Tried to add a progress book which only shows the quest progress upon using a command. 2023-08-05 13:49:12 +02:00
once_a_fairy e85e79c801 Added support for raid quests. 2023-08-04 23:41:13 +02:00
once_a_fairy 8eb28ea5f6 Added support for Shearing and Bucket quests and fixed some minor things. 2023-08-04 22:44:06 +02:00
once_a_fairy 3df774c2b6 Added ItemCaught.java which I previously forgot to push. 2023-07-16 16:15:10 +02:00
once_a_fairy 5929582e71 Added support for other quests.
Support for other quests of the fishing type was added.
2023-07-13 13:38:29 +02:00
once_a_fairy 241dce0537 Added quest support for harvesting plants. 2023-07-10 17:33:48 +02:00
Teriuihi 4e2aa4258d Fixed being able to get reward without doing the quest 2023-03-10 21:26:22 +01:00
Teriuihi 7d9d37f17b Fixed checking from wrong active channel in datalockapi 2022-12-06 01:16:32 +01:00
Teriuihi 3881dd5015 Added debug statement, register DataLock listener 2022-12-06 01:06:33 +01:00
Teriuihi ba4fff6676 Started rework for datalockapi 2022-12-05 21:35:39 +01:00
Teriuihi 785ca2f044 Fixed quest types not tab completing
Fixed tab complete not taking into account what has been typed already
2022-09-30 00:59:15 +02:00
Stijn b393693f16 Fixed collect drops quest taking too many items 2022-09-12 18:32:46 +02:00
Teriuihi bd1d71c953 Swapped order of quest pages 2022-09-08 05:31:26 +02:00
Teriuihi 6a100a2327 Better tab complete for set quest 2022-09-08 01:10:36 +02:00
Teriuihi bd4b8a4f81 Added debug statements for loading quests 2022-09-05 23:35:57 +02:00
Teriuihi 53e3ef8b1d Added a way to specify how often a quest type gets picked 2022-09-05 23:35:46 +02:00
Teriuihi 50fe3d8066 Fixed name capitalization 2022-09-05 23:35:29 +02:00
Teriuihi 3dc3ab05a7 Extend range of random int by one 2022-09-05 19:28:37 +02:00
Teriuihi 49bce78498 Made daily quests object synchronized 2022-09-05 19:28:22 +02:00
Teriuihi 724c9b01a8 idk what i did 2022-07-13 03:48:16 +02:00
Teriuihi d900e6f639 Fixed deleting too many items 2022-06-26 01:52:53 +02:00
Teriuihi 96512d8907 Fixed infinitely claiming quests 2022-06-05 03:46:50 +02:00
Teriuihi e074d939a8 Added finished quest message 2022-06-03 05:28:51 +02:00
Teriuihi 263b0ddbd1 Fixed being able to increase step1 over the max 2022-06-03 05:10:06 +02:00
Teriuihi 6d513de154 Load amount of things to do/collect/kill/whatever into the database and load it when loading quest 2022-06-03 05:02:26 +02:00
Teriuihi bcf0a3adef Correctly (hopefully) calculate the amount based on a range based on quest completed this month 2022-06-03 04:43:48 +02:00
Teriuihi 2cefdf8840 Log when someone completes a quest and fixed CompleteQuestEvent storing quests 2022-06-03 04:02:45 +02:00
Teriuihi 6a5261ff9a Created quest_log table 2022-06-03 03:42:21 +02:00
Teriuihi cdff96fb4d Added the ability to put a range in for quest types 2022-06-03 03:29:18 +02:00
Teriuihi c3fa337d2a Made setQuest create a quest async 2022-06-03 03:14:41 +02:00
Teriuihi 647cead4c1 Added get reward command
Store if a player obtained their reward already
2022-06-03 02:50:44 +02:00
Teriuihi 696bc20c7e Made the book more configurable 2022-06-03 01:06:24 +02:00
Teriuihi c0cb9cae98 Added 3 more quests
Prevented killing the npc
Made more things configurable
Moved things to the right config
2022-06-03 00:34:02 +02:00
Teriuihi 39900153d8 Added a way to open books outside of the interact with entity event
open book after turning in item
moved more things from MineQuest to just Quest
Made Variant and made MineQuestObject extend Variant
Made quests reset if they aren't from (irl) today
Made quests reset when a new (irl) day starts

Basically made everything work
2022-06-02 22:12:29 +02:00