Commit Graph

131 Commits

Author SHA1 Message Date
Teriuihi 2fe8b0d367 Give each particle set a unique id for the db 2022-01-13 20:10:56 +01:00
Teriuihi d424e7d768 Make events run particles 2022-01-13 19:06:48 +01:00
Teriuihi 960ec50228 Added example particle 2022-01-13 18:36:32 +01:00
Teriuihi cc8ec26c66 Make gui's work (but player settings are always recreated on login cus idk how to make the db work)
register listeners
Added back button to particle selection gui
2022-01-12 22:26:22 +01:00
Teriuihi bc74d35faa Added GUI's
Added player settings
Added commands
2022-01-11 23:02:04 +01:00
Teriuihi 71c5b76d88 Fixed leftover villagerUI stuff 2022-01-03 22:33:19 +01:00
Teriuihi 676d5089ae Fixed leftover villagerUI stuff 2022-01-03 22:33:16 +01:00
Teriuihi 487d36e1e5 Added db and queries classes 2022-01-03 22:33:03 +01:00
Teriuihi f5c096eb2b Initial commit 2022-01-03 22:26:15 +01:00
Teriuihi be656b4606 Initial commit 2022-01-03 22:25:23 +01:00
Teriuihi de11502f37 Attempted to fix price 2021-12-23 23:00:59 +01:00
Teriuihi 53f37c2a86 Cancel villager click event when clicking a villager shop ui villager 2021-12-23 22:58:06 +01:00
Teriuihi 451597ca59 Fixed setting instead of adding points 2021-12-23 22:57:50 +01:00
Teriuihi 1feff9e412 Changes 2021-12-23 22:52:13 +01:00
Teriuihi 5d7467e062 Remove villager from config 2021-12-23 22:51:22 +01:00
Teriuihi b52aaee628 Remove entity from world on delete 2021-12-23 22:51:12 +01:00
Teriuihi f0c9edfdac moved removing items from inventory 2021-12-23 16:40:56 +01:00
Teriuihi f34ba069ee Fixed logging 2021-12-23 16:40:42 +01:00
Teriuihi 317c294599 Changed updateUserPoints to void because the boolean is never used anyways 2021-12-23 16:15:36 +01:00
Teriuihi 3672ff0e5e Actually executing the update user points query now... 2021-12-23 16:13:48 +01:00
Teriuihi 1cb61421d9 Added some debug messages 2021-12-23 16:13:17 +01:00
Teriuihi 7f2b828763 renamed VillagerInteract 2021-12-23 03:15:38 +01:00
Teriuihi bf43f88d9b Added some debug messages 2021-12-23 03:14:08 +01:00
Teriuihi 9ece3e6d5d Fixed updating seen time 2021-12-23 03:03:17 +01:00
Teriuihi f471e83618 Added remove villager command 2021-12-23 03:03:00 +01:00
Teriuihi 391d58efeb 10 minutes, not 5* 2021-12-23 02:18:23 +01:00
Teriuihi b3ae5e67d8 Remove points from user every 10 minutes and sync them at the same time 2021-12-23 02:18:07 +01:00
Teriuihi 68978ad13c Made login async 2021-12-22 21:12:02 +01:00
Teriuihi 6fd575dc2e Remove user from GUIByUUID list 2021-12-22 21:07:40 +01:00
Teriuihi 762b0e2a30 Added login/out events to add/remove users from the tracked user list 2021-12-22 21:02:29 +01:00
Teriuihi 7e5123d7fe Added functions to sync user points, remove users, and remove user points 2021-12-22 21:01:55 +01:00
Teriuihi 0af3bcb843 Fixed items below $4 getting an invalid point calculation 2021-12-22 21:00:58 +01:00
Teriuihi 6c72ac417e Updated comments where needed 2021-12-22 21:00:28 +01:00
Teriuihi 3b982dbf3e Added last seen queries 2021-12-22 20:59:34 +01:00
Teriuihi f8e4b11c90 Added last seen queries 2021-12-22 20:59:24 +01:00
Teriuihi 58d833f870 Changed updateUserPoints to be settings points instead of adding to existing points and doing it for all points a user has in one go 2021-12-22 20:59:01 +01:00
Teriuihi bd46ce7df7 Changed updateUserPoints to be settings points instead of adding to existing points and doing it for all points a user has in one go 2021-12-22 20:58:50 +01:00
Teriuihi 51fb4758d5 Added user seen table 2021-12-22 20:58:10 +01:00
Teriuihi fa39c1a95b Fixed update and set points query 2021-12-21 03:30:37 +01:00
Teriuihi 665566dbb3 Fixed item capitalization 2021-12-21 03:30:19 +01:00
Teriuihi 3143eb4624 Added settings villager biome on creation 2021-12-21 03:19:26 +01:00
Teriuihi 0eaed2d86a Fixed price in purchase message 2021-12-21 03:19:08 +01:00
Teriuihi 58058a4324 Added not enough items/ sold item message 2021-12-21 03:18:46 +01:00
Teriuihi abbb46e1e8 Allow settings biomes and added configurable professions 2021-12-21 03:18:31 +01:00
Teriuihi 41afbfea39 Fixed rounding 2021-12-21 03:18:06 +01:00
Teriuihi 72c734b138 Added sell message, added selling items 2021-12-21 03:17:58 +01:00
Teriuihi 38e54a2704 Set default points to 0 when getting existing points (in case there are none) 2021-12-19 19:21:20 +01:00
Teriuihi c780054f24 Fixed never getting users from the database (I don't think we're adding them yet but that's for another time :)))) (im gonna forget and be confused for sure) 2021-12-18 01:34:42 +01:00
Teriuihi 3ccd198b9e why was this moved?? im dumb ig 2021-12-18 01:09:53 +01:00
Teriuihi 523a7fe16b Added math stuff to calculate price based on points (thanks everett) 2021-12-17 20:44:38 +01:00
Stijn 8d143b931a Allow public key retrieval 2021-11-17 19:41:00 +01:00
Stijn dec8b50317 Changed database to not be static 2021-11-17 19:32:21 +01:00
Stijn 34f83f20a1 Added vault depend 2021-11-10 21:03:18 +01:00
Stijn 755f8a4324 Improved getting econ 2021-11-10 20:29:27 +01:00
stjn 6893d7bac7 Added points to buy and sell events 2021-11-10 20:08:16 +01:00
stjn 9236befd7f Fixed regex for double validation in config 2021-11-10 20:03:39 +01:00
stjn f76543b494 Run query async 2021-11-10 18:00:10 +01:00
stjn 70363d8bf3 Fixed incorrect function calls 2021-11-10 17:38:00 +01:00
stjn 967fd83bfb Reworked points to be based on item price 2021-11-10 17:23:33 +01:00
stjn 99d8a5007e Reworked points to be based on item price 2021-11-10 16:58:47 +01:00
stjn 7584df32f4 Added sell/buy event 2021-11-10 15:59:18 +01:00
stjn 4a0c48a2c3 Check if player has permission to interact with the villager 2021-11-10 15:18:14 +01:00
stjn 47405bdcb7 Formatting 2021-11-10 15:08:54 +01:00
stjn c9987795bc Added points to users 2021-11-08 20:28:25 +01:00
stjn 7066c032cf Charge money/give money when buying/selling 2021-11-07 18:23:54 +01:00
stjn 5ce955d6ee Charge money/give money when buying/selling 2021-11-07 18:10:50 +01:00
stjn 4b5e09c553 Prepared buy/sell gui for actually functioning 2021-11-03 17:04:58 +01:00
stjn 8a53111350 Added more untested queries 2021-11-03 16:54:22 +01:00
stjn 784cf905fb Added logger class that takes variables and replaces % with them 2021-11-03 16:54:12 +01:00
stjn f09061f6b6 Added basic database (untested) 2021-11-03 14:35:53 +01:00
Teriuihi c538a68160 Made opening the gui's async 2021-10-23 14:43:11 +02:00
Teriuihi 4bb26035d6 Created a point system to be used for prices 2021-10-23 14:42:55 +02:00
Teriuihi d72930cb67 Removed debug print statement 2021-10-21 17:32:26 +02:00
Teriuihi 9c18baa21e Fixed rounding, fixed not calculating items with weird meta 2021-10-21 17:31:15 +02:00
Teriuihi 4fbc195607 Made changes and didn't push inbetween so i forgot it all 2021-10-21 17:13:21 +02:00
Teriuihi 18a75f86c0 Only use Utilities.round 2021-09-25 20:22:38 +02:00
Teriuihi fc46343454 Fix rounding issues 2021-09-25 20:22:23 +02:00
Teriuihi 5ac582261c Renamed and commented functions 2021-09-25 03:23:45 +02:00
Teriuihi 980448f9e7 Moved price and it's methods to Utilities 2021-09-25 03:23:36 +02:00
Teriuihi 22e05d140f Moved price and it's methods to Utilities 2021-09-25 03:20:25 +02:00
Teriuihi 5dd6cb44e5 Initial commit 2021-09-25 01:56:42 +02:00