Commit Graph

99 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
_Piston 3669cf73be
Bungee sync vendor messages (#320) 2020-04-27 18:13:10 +02:00
Eric d9618aa227 Re-add support for PlotSquared v4 2020-04-25 16:23:21 +02:00
Eric 0f51cc34c2 Support PlotSquared v5
Does not support older PlotSquared versions anymore
2020-04-25 15:54:15 +02:00
Eric 1b34ba1fbd Organize imports 2020-03-25 14:22:50 +01:00
Eric fd5ebd0921 Only withdraw creation price if higher than zero
Fixes #285
2019-12-15 15:35:42 +01:00
Eric 0896a52556 Add ShopProduct#getLocalizedName for easier access 2019-08-07 23:21:29 +02:00
Eric d53ee08db9 Don't ever un-cancel interact event 2019-08-05 22:32:49 +02:00
Eric c9ce45dc0c Add chest space to shop info message
Space only shown if selling enabled, stock only shown if buying enabled
2019-06-03 17:03:24 +02:00
Eric e6393ecd6c Added refund to "Shop removed" message
+ Fixed refund option being ignored
2019-06-03 16:53:23 +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 8f2d2540ba Update some dependencies
Should fix #245, however PlotSquared support will not be working anymore
for versions below 1.13.
2019-04-30 22:24:01 +02:00
Eric f09d57b2a2 Fix error when WorldGuard not installed 2019-04-29 21:08:55 +02:00
Eric 8ef1fb391f Fix "chest blocked" error with cave/void air 2019-04-28 22:10:27 +02:00
Eric c3227e9a42 Update WorldGuardWrapper depdendency 2019-04-27 17:38:46 +02: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 51e16febe7 Deposit refund instead of withdrawing it 2018-11-04 14:21:14 +01:00
Eric cc24669c0c Allow refund for shop creation price
Only refunded if shop is removed by vendor via command or by breaking
the chest. No refund will be given if shop is removed automatically or by
another player.

Closes #222
2018-11-03 21:44:02 +01:00
Eric f516b78776 Fix NPE when confirming buy or sell
Fixes #202
2018-08-05 11:54:52 +02:00
Eric 86322a1198 Fix warnings regarding PlotSquared flags 2018-08-03 18:56:09 +02:00
Eric f40b0b7418 Use WorldGuardWrapper to support v7 and v6
https://github.com/CodeMC/WorldGuardWrapper
2018-08-03 18:24:09 +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 78384ebc7b Implement HikariCP for database 2018-08-01 12:20:10 +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 148295ddb4 Don't check vendor balance at admin shops
Should fix errors with economy plugins when the vendor
does not have a valid name.
2018-07-26 17:25:55 +02:00
Eric 1a0920f239 Add product preview in shop info
This removes shop info messages for potion effect, enchantments,
music disc title and book generation.
2018-07-26 15:52:55 +02:00
Eric 3d60b5b49c Replace deprecated AuthMe calls 2018-07-25 14:37:02 +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
ken_kentan 47b23f126e Add permission check to a shop create func (#194) 2018-07-21 14:04:26 +02:00
Eric 3ae16b0c61 Instantly update hologram text after buying/selling 2017-08-15 12:53:15 +02:00
Eric 2340eb67e1 Added config option to confirm buying and selling
Closes #128
2017-08-15 12:44:03 +02:00
MineTheCube 3b9d26c079 Few improvements (#135)
* Fix: Few improvements

* Few improvements

* Hologram/item can wait after shop creation

* Compare worlds using their name

* Fix holograms display

* Changed version to 1.12.4

* Display shop after creation

* Fix requested changed

* Improve performance for simple hologram conditions
2017-08-10 17:02:24 +02:00
Eric 51a0813473 Fixed shop info item when in off hand 2017-07-30 13:54:59 +02:00
Eric 8533c017e7 Fixed NoSuchMethodError on 1.8 2017-06-27 21:57:17 +02:00
Eric a92bd9292e Fixed NPE while creating shop on an unowned ASkyBlock island 2017-06-08 21:57:30 +02:00
Eric 3e6207182a Fixed refund if economy transactions fail 2017-06-08 11:32:40 +02:00
Eric f69299e20a Fixed typos in message enum names 2017-06-05 15:13:26 +02:00
Eric f653355cc2 Added way to retrieve shop info by clicking it with a specific item
Closes #104
2017-06-05 15:02:49 +02:00
Eric 18d3e36390 Added notification for withdrawal of shop creation price 2017-06-05 13:39:01 +02:00
Eric 48eda92079 Fixed support for multi-world economy plugins 2017-06-02 14:56:34 +02:00
Eric 57e57dc71e Improved configuration of command description messages
+ Renamed all occurrences of "regex" to "placeholder"
2017-06-02 14:44:08 +02:00
Eric 4dde2d9f53 Prevent shop use in creative mode
Closes #100
2017-05-25 14:18:35 +02:00
Eric ca064da094 You can now add scripts to the hologram format itself
Use curly brackets to add a script to the format.
Also, "regex" has been renamed to "placeholder".
2017-05-23 15:18:02 +02:00
Eric e1f076bfcd Vastly extended hologram configuration
- You can now completely customize every part of the hologram
- Added new placeholders "%STOCK%" and "%MAX-STACK%"
  => Now uses "%STOCK%" instead of "%AMOUNT%" in the in-stock message)
- Armor Stands are no longer spawned with NMS and reflection
- Hologram texts can dynamically change (e.g. with in-stock info)
- Might contain a few issues
2017-05-20 20:15:54 +02:00
Eric d44e30b625 Improved support for GriefPrevention
Now checks if the claim where the shop is located allows
container access for the player. If there is no claim, shop creation
is allowed (except it has been denied by other plugins)
2017-04-29 14:37:52 +02:00