Commit Graph

759 Commits

Author SHA1 Message Date
Eric
00bdbaee53 Fix exploit that allows staying in creative mode 2019-06-13 13:11:55 +02:00
Eric
060c8a7295 Fix typo 2019-06-04 21:00:04 +02:00
Eric
27212f0496 Prevent NPEs when disabling plugin in onEnable 2019-06-04 16:12:55 +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
9646bd0318 Update config descriptions 2019-06-03 16:38:25 +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
aea88b9f3b Update dependency versions 2019-05-28 21:15:09 +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
655e1f8b07 Automatically add missing translation entries
Entries will be appended to the bottom of the selected language file
with English default values
2019-05-09 14:42:33 +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
63e1b263c2 Entity IDs should not be changing
Removing an entity from a client doesn't work if the ID has changed.
2019-05-01 12:53:38 +02:00
Eric
e47fc9765d UUID of hologram and shop item should be unique 2019-05-01 12:28:17 +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
d45bcb5a94 Add python script to help create language files 2019-04-30 21:14:10 +02:00
Eric
930483b56a Update language files
Now only contain names that are looked up by the plugin
2019-04-30 19:56:05 +02:00
Eric
f09d57b2a2 Fix error when WorldGuard not installed 2019-04-29 21:08:55 +02:00
Eric
71f6ee5d6f Fixes (especially for 1.8.x) 2019-04-28 23:27:15 +02:00
Eric
bd574e7aa1 Fix missing line in config 2019-04-28 23:12:58 +02:00
Eric
404c872396 Specify database connection test queries
Should fix database connection error on older Minecraft versions
2019-04-28 22:28:03 +02:00
Eric
6962ad995e Update language files 2019-04-28 22:15:34 +02:00
Eric
e402c21e1b Fix translation name errors 2019-04-28 22:10:58 +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
Eric
03792981eb Fix typo in hologram format config 2019-04-28 20:04:02 +02:00
Eric
c3227e9a42 Update WorldGuardWrapper depdendency 2019-04-27 17:38:46 +02:00
Eric
8581622a57 Add support for 1.14 (untested) 2019-04-27 17:38:45 +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
4c6c87dc08 Make database console error messages clearer 2018-11-05 17:05:34 +01:00
Eric
d55cc4c8fe Database errors should not affect shop removal
(when disabling the plugin)
2018-11-05 17:05:33 +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
59828df99d Revise WorldGuard event hooks again
Hide all permission messages from WorldGuard on shop interaction,
except when chest-access is denied on shop creation.
2018-11-05 16:15:10 +01:00
Eric
e38fe9fe14 Revised WorldGuard event hooks
Make sure the flag chest-access is granted when creating a shop.
2018-11-04 17:07:44 +01:00
Eric
188bf87eba Update WorldGuardWrapper dependency 2018-11-04 17:03:59 +01:00
Eric
7df4f4b69d Don't send error when joining for the first time 2018-11-04 14:24:27 +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
19e039f935 Update bukkit dependency 2018-11-03 21:25:01 +01:00
Eric
56fd9710e0 Update WorldGuardWrapper dependency 2018-11-03 21:13:20 +01:00
Eric
e359c3b21a Kill armor stands when removing 2018-11-03 20:31:01 +01:00
Louis Mau
e6637b546e Update WorldGuardWrapper dependency (#219) 2018-10-22 16:29:50 +02:00
Eric
fc27480d37 Remove async world access
Fixes #212
2018-09-08 15:33:37 +02:00
Eric
785dde70bc Add 1.13.1 to supported versions
Doesn't seem to add any issues
2018-09-04 23:15:33 +02:00
Eric
cfeaf3cf8d Allow update checker to be disabled
(Only automatic update check on start; command is not affected)

Fixes #208
2018-08-25 23:45:56 +02: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
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