Commit Graph

130 Commits

Author SHA1 Message Date
Teriuihi da5e514422 Fix incorrect number of arguments in command
Fix check stock command checking total items left, not total amount of purchases left
2023-01-22 21:37:00 +01:00
Teriuihi d3ba5be040 Made stock checking work for everyone 2023-01-22 01:47:35 +01:00
Len 057df73513 Add back shop expiration when claims expire 2023-01-11 17:56:17 +01:00
Len c04142cf2a Rework commands 2022-11-22 09:27:49 +01:00
Teriuihi 72fd7efc86 Fixed weird stock message when stock not specified and no shops are found 2022-11-11 04:27:34 +01:00
Teriuihi 515613c36d Added check stock command 2022-11-11 04:21:15 +01:00
Len dccbaea32b Fix spacing 2022-10-04 09:22:52 +02:00
Len 69d90e16b5 Log error when shop can't be saved. 2022-10-03 20:38:15 +02:00
Teriuihi 76c68f6bfa Added stock check for shift left clicking a sign 2022-10-01 06:09:28 +02:00
Len 8cb2ed7648 Add bypass permission 2022-09-26 08:32:25 +02:00
Stijn 2ab2381579 Fixed AUTO_INCREMENT 2022-09-19 21:52:55 +02:00
Stijn 64a819b943 Fixed incorrect save order when adding balance to shop 2022-09-19 19:18:44 +02:00
Len 0674c969db Check if transactions table has to be created and fix logging transactions. 2022-09-18 19:48:32 +02:00
Len 0e73b5ee41 Check itemmeta when comparing items 2022-09-18 14:48:57 +02:00
Len 6eacfb2256 Remove unused shopmaterials in ShopHandler.java 2022-09-18 11:31:10 +02:00
Len 1089a06f3e SuppressWarnings("unused") 2022-09-18 11:30:14 +02:00
Len 6fc23b5d33 Load conversation prompts from MessageConfig.java 2022-09-18 11:29:40 +02:00
Len a6fe300a67 Fix shop limit permission. 2022-09-18 10:15:07 +02:00
Teriuihi 2b0ce135c5 Fixed money dupe bug due to database only storing the secon to last remove balance 2022-09-14 00:57:30 +02:00
Teriuihi 053c8f7060 Added a title to the shop management gui 2022-09-11 17:41:00 +02:00
Teriuihi 4ff2237c2a Extended max length of words on signs 2022-09-11 03:36:41 +02:00
Teriuihi 6280373e4a Added message for player not having enough money to make a shop 2022-09-11 03:36:25 +02:00
Len 439796a7f4 Use Components in ConverstationManager.java 2022-09-10 13:54:37 +02:00
Len bc2c38263a Add more util methods for Minimessage 2022-09-10 13:08:17 +02:00
Len 7b0fd3a9cb Do not echo back messages in conversations. 2022-09-10 12:50:20 +02:00
Teriuihi a17e484f79 Fix NPE for item component 2022-09-02 08:54:27 +02:00
Teriuihi d0dc044ca9 Show rounded price in info message 2022-09-02 08:54:27 +02:00
Teriuihi a4065ee41c Better fix for prices rounding 2022-09-02 08:54:27 +02:00
Teriuihi 4215d18ca5 Fixed Message Config and reloading 2022-09-02 08:54:16 +02:00
Stijn aa00c8d1f7 Trimmed item name and price on signs 2022-09-02 08:51:34 +02:00
Stijn 41cb2b2b65 Changed shop info to show the actual item in the shop when hovering over its name 2022-09-02 08:51:34 +02:00
Stijn cda2a0b216 Added a way to display all info on a shop 2022-09-02 08:51:34 +02:00
destro174 d23b8e0f1d
Merge pull request #12 from Altitude-Devs/messages
Messages, Fixes #6
2022-09-02 08:34:38 +02:00
Len 858162165f Add ShopBalance to the player when shop is broken. 2022-09-01 10:43:22 +02:00
Len 31c80fa92d Prevent dying shopsigns, Fixes #8 2022-09-01 10:10:25 +02:00
Stijn baf1a3696b Added shop type permission error to config 2022-08-31 20:51:15 +02:00
Stijn 2228e45ed4 Send different message for not having enough items/money 2022-08-31 20:00:36 +02:00
Stijn ad656391fb Send different message for buying/selling from/to shop 2022-08-31 19:56:33 +02:00
Len 89acf0c10e Do not validate shoptype input twice, Fixes #4 2022-08-31 10:10:18 +02:00
Len e49906fc75 Prevent players from breaking shops while they are conversing, Fixes #7 2022-08-31 10:08:19 +02:00
Len ed186b37bb Remove a debug message 2022-08-30 10:13:41 +02:00
Teriuihi 4ad7d4995e Merge remote-tracking branch 'origin/dev/rewrite' into dev/rewrite
# Conflicts:
#	src/main/java/com/alttd/playershops/listener/TransactionListener.java
2022-08-28 20:51:54 +02:00
Teriuihi 09c3349048 Added messages/placeholders for failed transactions 2022-08-28 20:50:29 +02:00
Len f646d1283b Add placeholds to TransactionListener.java 2022-08-28 20:47:05 +02:00
Len 789a4e0e3b Add placeholds to ShopManagementGui.java 2022-08-28 19:50:33 +02:00
Len 176e997b9e Check if player has balance before trying to add money to shop 2022-08-28 19:46:34 +02:00
Len 777a240757 Prevent stacking Conversations 2022-08-28 19:44:48 +02:00
Teriuihi fe82ccfa43 Removed extra call to #toLowerCase 2022-08-28 19:17:39 +02:00
Len b07bf2a92b Merge branch 'dev/rewrite' of https://github.com/Altitude-Devs/PlayerShops into dev/rewrite 2022-08-28 00:53:12 +02:00
Len 8d17848b6b Add more listeners and events to listen to 2022-08-28 00:53:00 +02:00
Teriuihi 195a47c828 Added logging for transactions 2022-08-25 22:51:42 +02:00
Len 3be53703be Small tweaks 2022-08-25 17:45:11 +02:00
Len abf53fbbbe dev/rework 2022-08-25 00:22:46 +02:00
Len 1ae73c5ba8 Use ComponentLogger in Logger.java 2022-08-23 16:26:23 +02:00
Len 6221631dab Add missing return in EventListeners 2022-08-22 19:15:40 +02:00
Len 41e169df08 Add some early returns 2022-08-22 16:56:49 +02:00
Len cd850eeee3 Add more events 2022-08-22 16:39:57 +02:00
Len f3030afa33 Work on TransactionListener.java 2022-08-22 14:07:05 +02:00
Len 3aa8414c5b Refactor/rework 2022-08-22 00:21:36 +02:00
Len 658837814a Refactor ShopTransactions 2022-08-21 17:36:01 +02:00
Len 4fb4ea4a79 Work on ShopTransactions 2022-08-21 00:25:48 +02:00
Len 0f3ec2c575 Finish database stuff 2022-08-13 16:10:23 +02:00
Len 819cbdcd93 make shop id a UUID 2022-08-13 16:10:10 +02:00
Len cf4431326e rework some stuff 2022-08-13 15:22:00 +02:00
Len d33a0db545 Remove ShopType config from DatabaseConfig.java 2022-08-07 17:30:00 +02:00
Len 5ccd5b6f0c Remove API module 2022-08-07 17:28:38 +02:00
Len bde0f5d040 Split project 2022-07-09 14:53:27 +02:00
Len 259e806d59 Use API references 2022-07-09 12:44:20 +02:00
Len b608668cae Rework listeners 2022-07-08 11:00:31 +02:00
Len efebd4422c Rename ShopHandlerImpl 2022-07-08 11:00:00 +02:00
Len 062d898575 Add Shop interface 2022-07-08 10:59:05 +02:00
Len 1167f60bbb Add in ShopHandler interface 2022-07-08 10:28:33 +02:00
Len ca279dc1ed Add in shop objects 2022-07-05 11:06:39 +02:00
Len 10ea384164 Add lombok 2022-07-04 11:04:13 +02:00
Len 5c9141003f Add ShopType enum 2022-06-07 15:12:33 +02:00
Len 10e2f322b3 Add ShopMessageConfig 2022-06-07 15:11:03 +02:00
Len 8802f240de Switch config to AbstractConfiguration 2022-06-07 15:09:08 +02:00
Len be73a291da Add initial listener classes 2022-06-07 14:39:20 +02:00
Len 68598777b1 Add initial listener classes 2022-06-07 14:38:30 +02:00
Len d3b7489573 Yet another rework of the PlayerShop plugin. 2022-06-06 18:30:35 +02:00