Commit Graph

23 Commits

Author SHA1 Message Date
akastijn ff4fb6c1ae Update to java 21, 1.21 with cosmso 2025-06-28 03:33:39 +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
once_a_fairy 2b9d6c0160 Minor changes. 2023-08-06 14:53:36 +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 241dce0537 Added quest support for harvesting plants. 2023-07-10 17:33:48 +02: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 724c9b01a8 idk what i did 2022-07-13 03:48:16 +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 2cefdf8840 Log when someone completes a quest and fixed CompleteQuestEvent storing quests 2022-06-03 04:02:45 +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 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
Teriuihi e9bdb6a70d Save and load quests from the database 2022-06-01 23:17:45 +02:00
Teriuihi 063fc4061e Big commit, made mining quests work and use data lock to sync for when we add db 2022-06-01 19:33:02 +02:00
Teriuihi 686925361a Tried fixing double interact event, fixed not spawning scruff 2022-05-29 17:46:50 +02:00
Len f87cac8d52 Update minimessage references 2022-05-26 22:57:17 +02:00
Teriuihi dca5b954c7 Added QuestComplete event and tried to update to 1.18.2 2022-05-25 03:58:53 +02:00
Teriuihi 66316ff578 Work on mine quest 2022-05-21 02:38:34 +02:00
Teriuihi 1ecf4508e8 attempted to start adding quests 2022-05-01 21:48:52 +02:00