Commit Graph

121 Commits

Author SHA1 Message Date
Eric
5157cc42ac Update dependencies and their implementations
PlotSquared integration will not work with version 5.x anymore!

Towny and BentoBox may also require a more recent version.
2021-07-29 14:18:06 +02:00
Eric
acd447c6ec First steps towards 1.17 support
The plugin works, but the localization part has yet to be done, and
support for other plugins has to be updated to the latest versions.
2021-07-24 23:40:53 +02:00
Eric
0ab51482d2 No world access on plugin disable 2021-01-01 19:00:32 +01:00
Gregory DALMAR
9e9c509f9b
Change plotsquared repo to official new repo and add support for 1.16.4 (#351)
Thank you :)
2020-11-12 14:54:52 +01:00
Eric
d3574f1519 Add support for 1.16.2 2020-08-22 17:59:05 +02:00
Eric
056989437d Add support for 1.16 2020-06-25 19:52:32 +02:00
Eric
30a2b8aefc Make ShopUtils#getShops() return a new copy
ShopUtils#getShopsCopy() is now deprecated
2020-03-25 14:50:21 +01:00
Eric
1b34ba1fbd Organize imports 2020-03-25 14:22:50 +01:00
Eric
0002055e5f Fix removeall command 2020-03-16 15:18:32 +01:00
Eric
bcf3f5c9cb Don't unload shops on chunk unload 2020-02-24 20:35:13 +01:00
Eric
c681a9fe31 Only add shop if not already loaded 2020-02-24 20:32:22 +01:00
Eric
26025ef64a Only add shop if chunk is still loaded 2020-02-21 15:51:16 +01:00
Eric
8717a282c2 Fix shop limits 2020-02-20 13:23:53 +01:00
Eric
c595b574ec Load/unload shops on chunk load/unload
This breaks shop limits, only loaded shops are counted at the moment
2020-01-21 20:00:08 +01:00
Eric
8ed16d7f3f Add support for 1.15
Fixes #291
2019-12-15 15:32:05 +01:00
Eric
6d57267492 Fix removing double chest shops without chests
When AreaShop integration was enabled and a region with double chest
shops was reset and sold/unrented, those shops woudn't be removed.

A method to remove a shop by its ID was introduced as a fix.
2019-08-07 14:54:16 +02:00
Eric
fe18f38944 Fix holograms for 1.9.x 2019-06-22 17:47:51 +02:00
Eric
da27a4e846 Use guava's Optional for data watcher creation 2019-06-22 17:25:58 +02:00
Eric
0617d3bc1b Use marker armor stands
Allows players to click through holograms for easier shop interaction.

Only available on 1.8.3 and higher
2019-06-22 17:18:44 +02:00
Eric
3730eb9703 Disable plugin when shops fail to load or reload 2019-06-16 15:58:02 +02:00
Eric
00bdbaee53 Fix exploit that allows staying in creative mode 2019-06-13 13:11:55 +02:00
Eric
48bb669c01 Remove a couple config options
- Shop items cannot be hidden
- Hologram interaction had to be removed
- Hopper/Explosion protection cannot be disabled
- Admin shops cannot be counted in shop limit
- Only the nearest shop the player points at is shown
2019-06-03 16:38:25 +02:00
Eric
ea894783fb Allow shop item to be selected from creative menu
If the player does not hold an item, he is asked to select one.
2019-05-28 15:53:26 +02:00
Eric
1c8cdb0639 Outsource external checks for shop creation
Every supported plugin has its own listener for ShopCreateEvent
and ShopExtendEvent.

I also tried to clean up a bit, there can be done more though.
2019-05-08 21:47:23 +02:00
Eric
71f6ee5d6f Fixes (especially for 1.8.x) 2019-04-28 23:27:15 +02:00
Eric
8ef1fb391f Fix "chest blocked" error with cave/void air 2019-04-28 22:10:27 +02:00
Eric
77a837fc05 Rework NMS
Fixes hologram duplicates
Fixes support for 1.14
Breaks hologram interaction (Events cannot be sent to the server)

Armor stand and item entities are now totally client side,they are not
even created, but instead are just put in a packet to send to the client

Performance has not been tested!
2019-04-28 20:56:49 +02:00
Eric
bac5a24b37 Add IS_BANNER_PATTERN for hologram format 2019-04-28 20:51:43 +02:00
ken_kentan
e532e9c095 Fix shop updater (#236) 2019-01-14 16:24:57 +01:00
Eric
6ae12f65c0 Database improvements
- Support table prefixes (Fixes #138)
- Support amounts above 127 in Paper (Fixes #149)
- Split UUID, name and shop type in economy log
- Split product and amount in economy log (Fixes #143)
- Added product data (Base64) to economy log
2018-11-10 20:34:11 +01:00
Eric
3a7d49d292 Revise and fix update checker
Use spiget API to get retrieve latest uploaded version.
2018-11-05 17:05:25 +01:00
Eric
7032209ef7 Use queue and move event for shop updater 2018-08-19 23:07:58 +02:00
Eric
c80129b56f Cancel 15 second timer after removing click type 2018-08-05 12:19:53 +02:00
Eric
86322a1198 Fix warnings regarding PlotSquared flags 2018-08-03 18:56:09 +02:00
Eric
11c6af099b Fix ConcurrentModificationException 2018-08-03 18:19:45 +02:00
Eric
3678738048 Async shop creation (again)
This time, a thread pool with a maximum pool
size of 8 threads is used to execute the slow
methods of shop creation.
2018-08-01 13:37:07 +02:00
Eric
1a3641a377 Revert "Async shop creation"
This reverts commit 80626e823f.

It doesn't seem like a good idea to create 1000+ threads
(even if just for a minute)
2018-07-31 11:47:46 +02:00
Eric
80626e823f Async shop creation
This should fix timeouts when (re-)loading shops
2018-07-31 11:11:18 +02:00
Eric
5c2c3169b6 Change shop updater logic
I'm not sure if this better or worse, but it's worth a try.
2018-07-29 22:01:04 +02:00
Steven M
ff5c3cdd45 Fix books changing metadata by serialization (#165)
Fixes #164
2018-07-26 17:35:53 +02:00
Eric
3c0790d670 Make JsonBuilder.parse static 2018-07-26 13:44:44 +02:00
Eric
9a70df5e01 Update JSON message builder/parser
Preparing for item preview in shop info
2018-07-26 00:02:06 +02:00
Eric
4cb59b18de Re-add support for Minecraft 1.8 - 1.12.2 2018-07-25 16:54:22 +02:00
Eric
8cf7b7c08e Fix javadoc warnings
A part of the documentation may still be incorrect
2018-07-25 13:11:44 +02:00
Eric
43bb3e3b38 Fix display issues and double chests 2018-07-23 21:12:43 +02:00
Eric
2ac81b0b8f Fix update checker 2018-07-23 19:50:27 +02:00
Eric
2d3edc7dcc Clean up some warnings 2018-07-23 18:38:37 +02:00
Eric
5a4741ddf3 Support Java 9+
Drops support for Java 7
2018-07-23 18:38:36 +02:00
Eric
94a51373b5 Support Minecraft 1.13
Drops support for older Minecraft verions (1.8 - 1.12.2)
2018-07-23 18:38:06 +02:00
Eric
5bfb0a1a22 Renamed config variables 2018-07-23 17:57:01 +02:00