Commit Graph

153 Commits

Author SHA1 Message Date
Teriuihi a50de19f2e Removed unused import 2022-01-12 02:11:33 +01:00
Teriuihi 83cd1b2744 Stop VillagerUI villagers from being damaged 2022-01-12 02:10:03 +01:00
Teriuihi a5a019d1e6 Display price as positive and have the messages explain 2022-01-12 02:01:12 +01:00
Teriuihi edf98f9204 Prevented accidental fast double clicks 2022-01-12 01:11:01 +01:00
Teriuihi 10b4b52297 Added help messages for buy/sell commands 2022-01-12 01:10:27 +01:00
Teriuihi 219c9024bd Added buy/points/sell command 2022-01-11 02:13:08 +01:00
Teriuihi 64cb948038 Fixed help message not sending properly when no args are given 2022-01-11 00:16:57 +01:00
Teriuihi cdc3a58815 Always send price with 2 decimal numbers 2022-01-11 00:03:57 +01:00
Teriuihi b7e8ba74b5 Finished adding confirm button
Fixed controlling gui from player inventory
2022-01-10 22:36:25 +01:00
Teriuihi f8dccf5645 Started work on confirm button 2022-01-10 19:53:09 +01:00
Teriuihi 58cd8b868d prevent potions from affecting trader villagers 2022-01-10 19:50:21 +01:00
Teriuihi 7fa71e06a0 Half converted buy ui to use confirmation 2022-01-07 00:21:27 +01:00
Teriuihi 0eb28ddf75 Fixed templates
Fixed item stack amount being changed permanently
2022-01-06 00:35:50 +01:00
Teriuihi 14e53de6e6 color change for item name 2022-01-05 22:20:24 +01:00
Teriuihi 8619e0dd94 Added total points to buy/sell message 2022-01-05 22:19:55 +01:00
Teriuihi 4c71b30434 Removed unused imports 2022-01-05 21:43:56 +01:00
Teriuihi 2c7118501b Free space message 2022-01-05 21:43:47 +01:00
Teriuihi fc061055d4 Try to improve getting price 2022-01-05 21:43:26 +01:00
Teriuihi 35030475aa Prevent accidentally buying more than you can fit 2022-01-05 21:43:12 +01:00
Teriuihi 149dd46eaf Added bulk selling/buying 2022-01-05 21:42:23 +01:00
destro174 deb2494ce4 fix handlerlist 2022-01-04 00:53:01 +01:00
Teriuihi c1a13c6674 Wait fuck I did need this 2022-01-04 00:23:30 +01:00
Teriuihi 5aaf377230 Removed unused code 2022-01-03 23:53:06 +01:00
Teriuihi ac29621948 Removed unused config section 2022-01-03 23:52:57 +01:00
Teriuihi 12b2938472 Removed unused code 2022-01-03 22:48:41 +01:00
Teriuihi be6c17b32e Maybe did something to fix rounding idk 2022-01-03 01:52:32 +01:00
Teriuihi 63b2e58554 Fixed pricing steps 2022-01-03 01:50:37 +01:00
Teriuihi d47e4642dd Stopped people from stealing VillagerShop villagers with a boat (or any vehicle) 2022-01-03 01:50:19 +01:00
Teriuihi 97860c7da5 Added points in message and fixed price and point calculations 2022-01-02 20:30:33 +01:00
Teriuihi d45c2f9ace Fixed stuff and did stuff and i forgot sorry to anyone reading this 2022-01-02 06:15:07 +01:00
Teriuihi 861d3ea2a3 Fixed price point calculations 2021-12-31 18:44:49 +01:00
Teriuihi d59c58f066 Updated MiniMessage 2021-12-31 18:44:32 +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